From 5fb9b1eaccf00bc66fb32a1067fdbc087c40d316 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 25 Nov 2011 11:57:31 +0000 Subject: fix for error export with no armature --- io_export_unreal_psk_psa.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'io_export_unreal_psk_psa.py') diff --git a/io_export_unreal_psk_psa.py b/io_export_unreal_psk_psa.py index b04ab260..121c5000 100644 --- a/io_export_unreal_psk_psa.py +++ b/io_export_unreal_psk_psa.py @@ -1685,7 +1685,7 @@ def fs_callback(filename, context): bmesh = False bArmatureScale = True bArmatureCenter = True - if blender_armature[0] is not None: + if blender_armature and blender_armature[0] is not None: if blender_armature[0].scale.x == 1 and blender_armature[0].scale.y == 1 and blender_armature[0].scale.z == 1: #print("Okay") bArmatureScale = True -- cgit v1.2.3