[Bf-blender-cvs] [7f17d15125a] temp-attribute-processor: fix bugs
Jacques Lucke
noreply at git.blender.org
Tue Jun 22 05:25:05 CEST 2021
Commit: 7f17d15125a8ce5147c2e80cb891a94bb6d42111
Author: Jacques Lucke
Date: Thu Jun 10 14:56:30 2021 +0200
Branches: temp-attribute-processor
https://developer.blender.org/rB7f17d15125a8ce5147c2e80cb891a94bb6d42111
fix bugs
===================================================================
M source/blender/nodes/geometry/nodes/node_geo_attribute_processor.cc
===================================================================
diff --git a/source/blender/nodes/geometry/nodes/node_geo_attribute_processor.cc b/source/blender/nodes/geometry/nodes/node_geo_attribute_processor.cc
index d8b18aa393e..f3f5763b315 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_attribute_processor.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_attribute_processor.cc
@@ -70,7 +70,7 @@ static void geo_node_attribute_processor_layout(uiLayout *layout, bContext *C, P
{
uiLayout *col = uiLayoutColumn(layout, false);
- bNodeSocket *interface_socket = (bNodeSocket *)group->inputs.first;
+ bNodeSocket *interface_socket = (bNodeSocket *)group->outputs.first;
AttributeProcessorOutputSettings *output_settings = (AttributeProcessorOutputSettings *)
storage->outputs_settings.first;
for (; interface_socket && output_settings;
@@ -261,7 +261,7 @@ static void geo_node_attribute_processor_group_update(bNodeTree *ntree, bNode *n
output_settings = (AttributeProcessorOutputSettings *)MEM_callocN(
sizeof(AttributeProcessorOutputSettings), __func__);
output_settings->identifier = BLI_strdup(interface_sock->identifier);
- if (interface_sock->default_attribute_name[0] != '\0') {
+ if (!StringRef(interface_sock->default_attribute_name).is_empty()) {
output_settings->output_mode = GEO_NODE_ATTRIBUTE_PROCESSOR_OUTPUT_MODE_DEFAULT;
}
BLI_addtail(&storage->outputs_settings, output_settings);
More information about the Bf-blender-cvs
mailing list