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.
This commit is contained in:
parent
2995165148
commit
11a9578a19
Notes:
blender-bot
2023-02-14 03:59:42 +01:00
Referenced by commit 345dded146
, Revert "Geometry Nodes: hide group inputs with "Hide Value" enabled in modifier"
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue