[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [4622] trunk/py/scripts/addons/ io_import_scene_mhx.py: The rig will not be imported correctly unless Auto Run Python Scripts is turned on .

Thomas Larsson thomas_larsson_01 at hotmail.com
Sat Jul 13 17:58:32 CEST 2013


Revision: 4622
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=4622
Author:   thomasl
Date:     2013-07-13 15:58:32 +0000 (Sat, 13 Jul 2013)
Log Message:
-----------
The rig will not be imported correctly unless Auto Run Python Scripts is turned on. Therefore an comprehensible error is raised if this is not the case.

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-07-13 05:38:44 UTC (rev 4621)
+++ trunk/py/scripts/addons/io_import_scene_mhx.py	2013-07-13 15:58:32 UTC (rev 4622)
@@ -2999,6 +2999,8 @@
 
         #filepathname = self.filepath.encode('utf-8', 'strict')
         try:
+            if not context.user_preferences.system.use_scripts_auto_execute:
+                MyError("Auto Run Python Scripts must be turned on.\nIt is found under\n File > User Preferences > File")
             readMhxFile(self.filepath)
             bpy.ops.mhx.success('INVOKE_DEFAULT', message = self.filepath)
         except MhxError:



More information about the Bf-extensions-cvs mailing list