diff options
author | Hans Goudey <h.goudey@me.com> | 2021-01-08 21:12:43 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-01-08 21:12:43 +0300 |
commit | 3c1fcec6522e25525cbf8747c70cd79db508f003 (patch) | |
tree | e19fa1bf0ae656e5742a17ade73d39169c278858 /release/scripts/startup/bl_operators | |
parent | bc788929aa2bd259670a5562a1f403f25cad4625 (diff) |
Fix T84517: Two geometry node trees added with "New" button
Adding the modifier itself already adds a new node tree, which is
then displayed in the node editor because of the active object and
active modifier context. So there's no need to create the node tree
in the python code in this case.
Diffstat (limited to 'release/scripts/startup/bl_operators')
-rw-r--r-- | release/scripts/startup/bl_operators/geometry_nodes.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_operators/geometry_nodes.py b/release/scripts/startup/bl_operators/geometry_nodes.py index 12cb9473b64..03cd14a3df7 100644 --- a/release/scripts/startup/bl_operators/geometry_nodes.py +++ b/release/scripts/startup/bl_operators/geometry_nodes.py @@ -62,9 +62,6 @@ class NewGeometryNodesModifier(bpy.types.Operator): if not modifier: return {'CANCELLED'} - group = geometry_node_group_empty_new(context) - modifier.node_group = group - return {'FINISHED'} |