fix canvas size

This commit is contained in:
2025-06-10 15:24:09 +02:00
parent 6798053389
commit b4defc1296
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -95,7 +95,7 @@ class RP_OT_mirror_shape(Operator):
continue
for mod in ob.modifiers:
if (mod.type == 'NODES' and mod.node_group.name == 'Symmetrize' and
if (mod.type == 'NODES' and mod.node_group and mod.node_group.name == 'Symmetrize' and
mod.get('Socket_2') in objects):
bpy.data.objects.remove(ob)
@@ -124,7 +124,7 @@ class RP_OT_mirror_shape(Operator):
for mod in list(flipped_object.modifiers):
flipped_object.modifiers.remove(mod)
# Add symmetrize modifier
# Add symmetrize modifier TODO add it into a resource
mod = flipped_object.modifiers.new(name='Symmetrize', type='NODES')
mod.node_group = bpy.data.node_groups['Symmetrize']
mod['Socket_2'] = ob