From 31e961e8c4d2b7a05abe93b149767d08f4f60f65 Mon Sep 17 00:00:00 2001 From: Thomas Larsson <thomas_larsson_01@hotmail.com> Date: Fri, 7 Sep 2012 03:49:47 +0000 Subject: [PATCH] Removed Armature option, since the importer crashes if it is deselected. --- io_import_scene_mhx.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/io_import_scene_mhx.py b/io_import_scene_mhx.py index 2fdefa298..2d47b45c9 100644 --- a/io_import_scene_mhx.py +++ b/io_import_scene_mhx.py @@ -117,8 +117,8 @@ T_Rigify = 0x1000 T_Opcns = 0x2000 T_Symm = 0x4000 -toggle = (T_EnforceVersion + T_Mesh + T_Armature + - T_Shapekeys + T_ShapeDrivers + T_Proxy + T_Clothes + T_Rigify) +toggle = ( T_EnforceVersion + T_Mesh + T_Armature + + T_Shapekeys + T_ShapeDrivers + T_Proxy + T_Clothes + T_Rigify ) # # Dictionaries @@ -2888,7 +2888,7 @@ MhxBoolProps = [ #("crash_safe", "Crash-safe", "Disable features that have caused Blender crashes", T_CrashSafe), ("mesh", "Mesh", "Use main mesh", T_Mesh), ("proxy", "Proxies", "Use proxies", T_Proxy), - ("armature", "Armature", "Use armature", T_Armature), + #("armature", "Armature", "Use armature", T_Armature), #("replace", "Replace scene", "Replace scene", T_Replace), ("cage", "Cage", "Load mesh deform cage", T_Cage), ("clothes", "Clothes", "Include clothes", T_Clothes), @@ -2919,7 +2919,7 @@ class ImportMhx(bpy.types.Operator, ImportHelper): def execute(self, context): global toggle, theScale, MhxBoolProps - toggle = 0 + toggle = T_Armature for (prop, name, desc, flag) in MhxBoolProps: expr = '(%s if self.%s else 0)' % (flag, prop) toggle |= eval(expr) -- GitLab