Commit: 11a9578a1972db0a2d3f4e593d9b22598340825b Author: Jacques Lucke Date: Tue Jan 31 18:54:55 2023 +0100 Branches: master https://developer.blender.org/rB11a9578a1972db0a2d3f4e593d9b22598340825b
Geometry Nodes: hide group inputs with "Hide Value" enabled in modifier When the "Hide Value" option of a group input is enabled, only its name is displayed in group nodes. Modifiers should have the same behavior. However, for modifiers, only showing the name does not make sense when the user can't edit the value. Therefore the value is not shown at all. =================================================================== 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 da623881548..140eec20582 100644 --- a/source/blender/modifiers/intern/MOD_nodes.cc +++ b/source/blender/modifiers/intern/MOD_nodes.cc @@ -1733,6 +1733,9 @@ static void panel_draw(const bContext *C, Panel *panel) int socket_index; LISTBASE_FOREACH_INDEX (bNodeSocket *, socket, &nmd->node_group->inputs, socket_index) { + if (socket->flag & SOCK_HIDE_VALUE) { + continue; + } draw_property_for_socket(*C, layout, nmd, &bmain_ptr, ptr, *socket, socket_index); } } _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org List details, subscription details or unsubscribe: https://lists.blender.org/mailman/listinfo/bf-blender-cvs