[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [4736] trunk/py/scripts/addons/ io_import_scene_mhx.py: Mhx exporter: reverted to ordinary eval in one place not called from mhx files.

Thomas Larsson thomas_larsson_01 at hotmail.com
Wed Sep 4 06:04:14 CEST 2013


Revision: 4736
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=4736
Author:   thomasl
Date:     2013-09-04 04:04:13 +0000 (Wed, 04 Sep 2013)
Log Message:
-----------
Mhx exporter: reverted to ordinary eval in one place not called from mhx files.

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	2013-09-03 22:06:58 UTC (rev 4735)
+++ trunk/py/scripts/addons/io_import_scene_mhx.py	2013-09-04 04:04:13 UTC (rev 4736)
@@ -2109,7 +2109,7 @@
 
 def defNewProp(name, proptype, rest):
     prop = "%sProperty(%s)" % (proptype, rest)
-    setattr(bpy.types.Object, name, mhxEval(prop))
+    setattr(bpy.types.Object, name, eval(prop)) # safe: only called from this file
 
 
 def setProperty(args, var):



More information about the Bf-extensions-cvs mailing list