[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2932] trunk/py/scripts/addons/ io_import_scene_mhx.py: MHX importer: fixed bug in previous commit.
Thomas Larsson
thomas_larsson_01 at hotmail.com
Mon Jan 23 09:10:38 CET 2012
Revision: 2932
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2932
Author: thomasl
Date: 2012-01-23 08:10:31 +0000 (Mon, 23 Jan 2012)
Log Message:
-----------
MHX importer: fixed bug in previous commit.
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-01-23 07:38:34 UTC (rev 2931)
+++ trunk/py/scripts/addons/io_import_scene_mhx.py 2012-01-23 08:10:31 UTC (rev 2932)
@@ -26,7 +26,7 @@
"""
Abstract
MHX (MakeHuman eXchange format) importer for Blender 2.5x.
-Version 1.10.0
+Version 1.10.1
This script should be distributed with Blender.
If not, place it in the .blender/scripts/addons dir
@@ -39,7 +39,7 @@
bl_info = {
'name': 'Import: MakeHuman (.mhx)',
'author': 'Thomas Larsson',
- 'version': (1, 10, 0),
+ 'version': (1, 10, 1),
"blender": (2, 5, 9),
'location': "File > Import > MakeHuman (.mhx)",
'description': 'Import files in the MakeHuman eXchange format (.mhx)',
@@ -51,7 +51,7 @@
MAJOR_VERSION = 1
MINOR_VERSION = 10
-SUB_VERSION = 0
+SUB_VERSION = 1
BLENDER_VERSION = (2, 59, 2)
#
@@ -211,6 +211,14 @@
'MaterialSlot' : {},
}
return
+
+def reinitGlobalData():
+ global loadedData
+ for key in [
+ 'MeshTextureFaceLayer', 'MeshColorLayer', 'VertexGroup', 'ShapeKey',
+ 'ParticleSystem', 'ObjectConstraints', 'ObjectModifiers', 'MaterialSlot']:
+ loadedData[key] = {}
+ return
Plural = {
'Object' : 'objects',
@@ -451,6 +459,7 @@
elif key == "Object":
parseObject(val, sub)
elif key == "Mesh":
+ reinitGlobalData()
data = parseMesh(val, sub)
elif key == "Armature":
data = parseArmature(val, sub)
More information about the Bf-extensions-cvs
mailing list