diff options
author | Thomas Larsson <thomas_larsson_01@hotmail.com> | 2011-09-18 19:49:30 +0400 |
---|---|---|
committer | Thomas Larsson <thomas_larsson_01@hotmail.com> | 2011-09-18 19:49:30 +0400 |
commit | 1319f04e30a81c2934ca92eb42e6f2660b5cf799 (patch) | |
tree | 2d933a754e8e516bcdf3c4e4c0d77494404b24a2 /io_import_scene_mhx.py | |
parent | fa5671f81dbc806d45ae69736d2ef4803eae3f1c (diff) |
MHX import. Small fix for properties.
Diffstat (limited to 'io_import_scene_mhx.py')
-rw-r--r-- | io_import_scene_mhx.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/io_import_scene_mhx.py b/io_import_scene_mhx.py index 1aee029e..bb95437c 100644 --- a/io_import_scene_mhx.py +++ b/io_import_scene_mhx.py @@ -26,7 +26,7 @@ """ Abstract MHX (MakeHuman eXchange format) importer for Blender 2.5x. -Version 1.7.0 +Version 1.7.1 This script should be distributed with Blender. If not, place it in the .blender/scripts/addons dir @@ -39,7 +39,7 @@ Alternatively, run the script in the script editor (Alt-P), and access from the bl_info = { 'name': 'Import: MakeHuman (.mhx)', 'author': 'Thomas Larsson', - 'version': (1, 7, 0), + 'version': (1, 7, 1), "blender": (2, 5, 8), "api": 37702, 'location': "File > Import > MakeHuman (.mhx)", @@ -52,7 +52,7 @@ bl_info = { MAJOR_VERSION = 1 MINOR_VERSION = 7 -SUB_VERSION = 0 +SUB_VERSION = 1 BLENDER_VERSION = (2, 58, 0) # @@ -806,9 +806,11 @@ def parseFModifier(fcu, args, tokens): """ def parseDriverTarget(var, nTarget, rna, args, tokens): targ = var.targets[nTarget] - ob = loadedData['Object'][args[0]] - #print(" targ id", targ, ob) - targ.id = ob + name = args[0] + #targ.id_type = args[1] + dtype = args[1].capitalize() + dtype = 'Object' + targ.id = loadedData[dtype][name] #print(" ->", targ.id) for (key, val, sub) in tokens: defaultKey(key, val, sub, 'targ', [], globals(), locals()) |