Merge branch 'fully_featured' of github.com:WHSnyder/SWBF-msh-Blender-Export into fully_featured

This commit is contained in:
William Herald Snyder 2022-01-19 13:51:00 -05:00
commit 553438c4b4

View File

@ -26,7 +26,7 @@ def extract_and_apply_anim(filename : str, scene : Scene):
arma = bpy.context.view_layer.objects.active
if arma.type != 'ARMATURE':
if not arma or arma.type != 'ARMATURE':
raise Exception("Select an armature to attach the imported animation to!")
if scene.animation is None: