Commit: 6f76bcc12c179669a819286d289e409d0b63f981
Author: Jacques Lucke
Date:   Mon Oct 18 12:58:30 2021 +0200
Branches: master
https://developer.blender.org/rB6f76bcc12c179669a819286d289e409d0b63f981

Fix: missing use-attribute property in geometry nodes modifier

The property was missing when a group input changed from not
supporting fields to supporting fields.

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

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 14b40582516..b28fead299d 100644
--- a/source/blender/modifiers/intern/MOD_nodes.cc
+++ b/source/blender/modifiers/intern/MOD_nodes.cc
@@ -599,7 +599,7 @@ void MOD_nodes_update_interface(Object *object, 
NodesModifierData *nmd)
       }
     }
 
-    if (input_has_attribute_toggle(*nmd->node_group, socket_index)) {
+    if (socket_type_has_attribute_toggle(*socket)) {
       const std::string use_attribute_id = socket->identifier + 
use_attribute_suffix;
       const std::string attribute_name_id = socket->identifier + 
attribute_name_suffix;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to