diff --git a/io_import_scene_mhx.py b/io_import_scene_mhx.py index 2fdefa298095d6df01670577bd95a9f4e0e315e2..2d47b45c9ea38c2bc750acf7094dc186ccf37de8 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)