[Bf-blender-cvs] [45012c33094] geometry-nodes-attribute-nodes: Geometry Nodes: Fix property values reset when input socket is added

Hans Goudey noreply at git.blender.org
Sun Nov 1 05:57:27 CET 2020


Commit: 45012c3309485138052f1eda306ce5f5b3bfb55b
Author: Hans Goudey
Date:   Sat Oct 31 23:24:06 2020 -0500
Branches: geometry-nodes-attribute-nodes
https://developer.blender.org/rB45012c3309485138052f1eda306ce5f5b3bfb55b

Geometry Nodes: Fix property values reset when input socket is added

The names of the IDProperties are the socket identifiers, not their names.

===================================================================

M	source/blender/modifiers/intern/MOD_nodes.cc

===================================================================

diff --git a/source/blender/modifiers/intern/MOD_nodes.cc b/source/blender/modifiers/intern/MOD_nodes.cc
index dc7882b1586..03c986fc6e4 100644
--- a/source/blender/modifiers/intern/MOD_nodes.cc
+++ b/source/blender/modifiers/intern/MOD_nodes.cc
@@ -569,7 +569,7 @@ void MOD_nodes_update_interface(Object *object, NodesModifierData *nmd)
         nmd->settings.properties, ui_container_group, *property_type, *socket);
 
     if (old_properties != NULL) {
-      IDProperty *old_prop = IDP_GetPropertyFromGroup(old_properties, socket->name);
+      IDProperty *old_prop = IDP_GetPropertyFromGroup(old_properties, socket->identifier);
       if (old_prop != nullptr && property_type->is_correct_type(*old_prop)) {
         IDP_CopyPropertyContent(new_prop, old_prop);
       }



More information about the Bf-blender-cvs mailing list