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:
parent
bc788929aa
commit
3c1fcec652
Notes:
blender-bot
2023-02-14 06:47:29 +01:00
Referenced by issue #84517, Adding geo-nodes modifier by clicking on 'New' in the editor adds 2 node trees
|
@ -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'}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue