[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3722] trunk/py/scripts/addons/ io_import_scene_mhx.py: Removed Armature option, since the importer crashes if it is deselected.

Thomas Larsson thomas_larsson_01 at hotmail.com
Fri Sep 7 05:49:50 CEST 2012


Revision: 3722
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3722
Author:   thomasl
Date:     2012-09-07 03:49:47 +0000 (Fri, 07 Sep 2012)
Log Message:
-----------
Removed Armature option, since the importer crashes if it is deselected.

Modified Paths:
--------------
    trunk/py/scripts/addons/io_import_scene_mhx.py

Modified: trunk/py/scripts/addons/io_import_scene_mhx.py
===================================================================
--- trunk/py/scripts/addons/io_import_scene_mhx.py	2012-09-06 19:05:34 UTC (rev 3721)
+++ trunk/py/scripts/addons/io_import_scene_mhx.py	2012-09-07 03:49:47 UTC (rev 3722)
@@ -117,8 +117,8 @@
 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 @@
     #("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 @@
         
     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)



More information about the Bf-extensions-cvs mailing list