Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Larsson <thomas_larsson_01@hotmail.com>2012-09-07 07:49:47 +0400
committerThomas Larsson <thomas_larsson_01@hotmail.com>2012-09-07 07:49:47 +0400
commit31e961e8c4d2b7a05abe93b149767d08f4f60f65 (patch)
treec5e3faa6a6772a6d99ef270f2add7d91ca0a9cd4 /io_import_scene_mhx.py
parent0121d1744cace2c36f56fba417d8cb7098768ae3 (diff)
Removed Armature option, since the importer crashes if it is deselected.
Diffstat (limited to 'io_import_scene_mhx.py')
-rw-r--r--io_import_scene_mhx.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/io_import_scene_mhx.py b/io_import_scene_mhx.py
index 2fdefa29..2d47b45c 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)