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.
This commit is contained in:
2021-01-08 12:12:43 -06:00
parent bc788929aa
commit 3c1fcec652

View File

@@ -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'}