Skip to content

Commit e2ad8ff

Browse files
committed
Mifthtools: Morpher now can make morphs from itself.
1 parent 959ccfa commit e2ad8ff

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

blender/addons/mifth_tools/mifth_tools.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ def execute(self, context):
303303
scene = bpy.context.scene
304304
mifthTools = scene.mifthTools
305305

306-
if len(bpy.context.selected_objects) > 1:
306+
if len(bpy.context.selected_objects):
307307
objAct = scene.objects.active
308308
morfIndex = 1
309309

@@ -313,7 +313,9 @@ def execute(self, context):
313313
basisKey.name = 'Basis'
314314

315315
for obj in bpy.context.selected_objects:
316-
if obj != objAct:
316+
if len(bpy.context.selected_objects) > 1 and obj == objAct:
317+
pass
318+
else:
317319
if len(obj.data.vertices) == len(objAct.data.vertices):
318320
shapeKey = objAct.shape_key_add(from_mix=False)
319321

0 commit comments

Comments
 (0)