ID 197882 - Parameter copy/paste creates excess local settings

Follow

Problem summary
After copying and pasting a group parameter between nodes, some parameters inside the group will have a local value set when they haven’t originally been edited before copying.
 
In some cases, the values of the parameters incorrectly marked as local will have changed slightly (e.g. from a value of 0.4 to 0.40000000596), which may be causing their state to change. Manually disabling the local assignment by clicking on the parameter state badge doesn't revert the value to the original one, even though it is now marked as being the default.
 
Steps to reproduce
  1. Create a ViewerObjectSettings node and press Ctrl+E to open its parameters.
  2. Right-click on the drawOptions group and select Copy.
  3. Right-click on drawOptions again and select Paste.
  4. Result: ‘color’ is now marked as having a local value when it actually shouldn’t be.
  5. Inspecting the parameter values in the parameter XML reveals that they have changed by a small amount:
    NodegraphAPI.GetNode('ViewerObjectSettings').getParameter('args.viewer.default.drawOptions.color.value').getXML()
    Resulting XML:
    <numberarray_parameter name="value" size="3" tupleSize="1">    <number_parameter name="i0" value="0.40000000596"/>    <number_parameter name="i1" value="0.40000000596"/>    <number_parameter name="i2" value="0.40000000596"/></numberarray_parameter>
Reproduced by support
Katana 7.0v3 - Windows 11
Katana 6.5v4 - Windows 11
Katana 6.0v4 - Windows 11
Katana 5.0v7 - Windows 11
Katana 5.0v1 - Windows 11
Katana 4.5v7 - Windows 11
Katana 4.5v1 - Windows 11
Katana 4.0v1 - Windows 11
Katana 2.6v3 - Windows 7
Katana 2.5v4 - Windows7 - RHEL 6
Katana 2.5v1 - Windows7 - RHEL 6
Katana 2.1v5 - RHEL 6
Katana 2.1v1 - RHEL 6
Katana 2.0v5 - RHEL 6
Katana 2.0v1 - RHEL 6
Katana 1.6v3 - RHEL 6
 
Expected behaviour
Only the parameters that have been edited in the original node should have a local value after copying and pasting them.
 
Actual behaviour
Certain parameters in a group will be marked as local when they haven’t been changed.

    We're sorry to hear that

    Please tell us why