Fix (unreported) geometry node attribute search not working in the
Properties Editor
Since rBb279fef85d1a, the nodes properties for geometry nodes using a
texture are displayed in the Properties Editor.
rB85421c4fab02 added an attribute search button, but this was missing
still (gave just the regular text button) if this was displayed in the
Properties Editor.
ref b279fef85d
/ T86416 / D10671 / D10673
Maniphest Tasks: T86416
Differential Revision: https://developer.blender.org/D10674
This commit is contained in:
parent
90520026e9
commit
53b82efed6
Notes:
blender-bot
2023-02-14 01:57:12 +01:00
Referenced by issue #86448, EEVEE SSR Refraction Depth regression Referenced by issue #86416, Crash in node menu of the texture properties
|
@ -826,11 +826,22 @@ static void ui_node_draw_input(
|
|||
case SOCK_INT:
|
||||
case SOCK_BOOLEAN:
|
||||
case SOCK_RGBA:
|
||||
case SOCK_STRING:
|
||||
uiItemR(sub, &inputptr, "default_value", 0, "", ICON_NONE);
|
||||
uiItemDecoratorR(
|
||||
split_wrapper.decorate_column, &inputptr, "default_value", RNA_NO_INDEX);
|
||||
break;
|
||||
case SOCK_STRING: {
|
||||
const bNodeTree *node_tree = (const bNodeTree *)nodeptr.owner_id;
|
||||
if (node_tree->type == NTREE_GEOMETRY) {
|
||||
node_geometry_add_attribute_search_button(node_tree, node, &inputptr, row);
|
||||
}
|
||||
else {
|
||||
uiItemR(sub, &inputptr, "default_value", 0, "", ICON_NONE);
|
||||
}
|
||||
uiItemDecoratorR(
|
||||
split_wrapper.decorate_column, &inputptr, "default_value", RNA_NO_INDEX);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
add_dummy_decorator = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue