[Bf-blender-cvs] [082c17a2d24] geometry-nodes: Fix group input is resetting in modifier

Jacques Lucke noreply at git.blender.org
Tue Oct 27 17:01:11 CET 2020


Commit: 082c17a2d2488b0535073dbdd41400c661d70694
Author: Jacques Lucke
Date:   Tue Oct 27 17:01:03 2020 +0100
Branches: geometry-nodes
https://developer.blender.org/rB082c17a2d2488b0535073dbdd41400c661d70694

Fix group input is resetting in modifier

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

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 549f80ce841..fa14c504472 100644
--- a/source/blender/modifiers/intern/MOD_nodes.cc
+++ b/source/blender/modifiers/intern/MOD_nodes.cc
@@ -422,7 +422,7 @@ void MOD_nodes_update_interface(NodesModifierData *nmd)
       IDProperty *new_property = property_type->create(*socket, socket->identifier);
       IDP_AddToGroup(nmd->settings.properties, new_property);
     }
-    else if (property_type->is_correct_type(*property)) {
+    else if (!property_type->is_correct_type(*property)) {
       IDP_FreeFromGroup(nmd->settings.properties, property);
       property = property_type->create(*socket, socket->identifier);
       IDP_AddToGroup(nmd->settings.properties, property);



More information about the Bf-blender-cvs mailing list