diff options
author | Jacques Lucke <jacques@blender.org> | 2020-12-01 13:32:36 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-12-02 18:34:06 +0300 |
commit | 074de755e987c90d1a4f1dc1fb5a8e74a024a534 (patch) | |
tree | 709ef46fe377b6865bf785e2b1748a8eb3eb91f2 /release/scripts/startup/bl_ui | |
parent | 58cc8938e16acb13380dc345c859848bb1b3d34c (diff) |
Geometry Nodes: correct modifier name when creating from node editor
The name should be the same as when the modifier is created in the
modifier tab of the properties editor.
Diffstat (limited to 'release/scripts/startup/bl_ui')
-rw-r--r-- | release/scripts/startup/bl_ui/space_node.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_ui/space_node.py b/release/scripts/startup/bl_ui/space_node.py index 9ad454d49e1..1c4d1919f43 100644 --- a/release/scripts/startup/bl_ui/space_node.py +++ b/release/scripts/startup/bl_ui/space_node.py @@ -163,11 +163,11 @@ class NODE_HT_header(Header): row.template_ID(snode, "node_tree", new="node.new_geometry_node_group_assign") elif ob: active_modifier = ob.modifiers.active - if active_modifier and active_modifier.type == "NODES": + if active_modifier and active_modifier.type == "NODES": row.template_ID(active_modifier, "node_group", new="node.new_geometry_node_group_assign") else: - row.template_ID(snode, "node_tree", new="node.new_geometry_node_modifier") - + row.template_ID(snode, "node_tree", new="node.new_geometry_nodes_modifier") + else: # Custom node tree is edited as independent ID block |