[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3542] trunk/py/scripts/addons/ io_import_scene_mhx.py: MHX importer: Removed some dead code, and now display two digits for minor version number to avoid confusion.

Thomas Larsson thomas_larsson_01 at hotmail.com
Wed Jun 27 06:23:53 CEST 2012


Revision: 3542
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3542
Author:   thomasl
Date:     2012-06-27 04:23:42 +0000 (Wed, 27 Jun 2012)
Log Message:
-----------
MHX importer: Removed some dead code, and now display two digits for minor version number to avoid confusion.

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-06-26 21:52:16 UTC (rev 3541)
+++ trunk/py/scripts/addons/io_import_scene_mhx.py	2012-06-27 04:23:42 UTC (rev 3542)
@@ -26,7 +26,7 @@
 """
 Abstract
 MHX (MakeHuman eXchange format) importer for Blender 2.5x.
-Version 1.13.1
+Version 1.13.2
 
 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, 13, 1),
+    'version': (1, 13, 2),
     "blender": (2, 6, 3),
     'location': "File > Import > MakeHuman (.mhx)",
     'description': 'Import files in the MakeHuman eXchange format (.mhx)',
@@ -51,7 +51,7 @@
 
 MAJOR_VERSION = 1
 MINOR_VERSION = 13
-SUB_VERSION = 0
+SUB_VERSION = 2
 
 #
 #
@@ -328,8 +328,8 @@
         else:
             msg = (
 "Wrong MHX version\n" +
-"Expected MHX %d.%d but the loaded file " % (MAJOR_VERSION, MINOR_VERSION) +
-"has version MHX %d.%d\n" % (major, minor))
+"Expected MHX %d.%02d but the loaded file " % (MAJOR_VERSION, MINOR_VERSION) +
+"has version MHX %d.%02d\n" % (major, minor))
             if minor < MINOR_VERSION:
                 msg += (
 "You can disable this error message by deselecting the \n" +
@@ -2311,7 +2311,7 @@
 #
 #    extractBpyType(data):
 #
-
+"""
 def extractBpyType(data):
     typeSplit = str(type(data)).split("'")
     if typeSplit[0] != '<class ':
@@ -2335,7 +2335,7 @@
         return False
     else:
         MyError("Bool %s?" % string)
-        
+"""        
 #
 #    invalid(condition):
 #



More information about the Bf-extensions-cvs mailing list