Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Larsson <thomas_larsson_01@hotmail.com>2013-07-13 19:58:32 +0400
committerThomas Larsson <thomas_larsson_01@hotmail.com>2013-07-13 19:58:32 +0400
commit81626622f867b42bc7240ca1fa85d5dae6e9e306 (patch)
treec55f6c9c2767693f2571bde368527cc16089e4bb /io_import_scene_mhx.py
parent52a1f47e32d23a6016f44310e38a61127b9a63af (diff)
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.
Diffstat (limited to 'io_import_scene_mhx.py')
-rw-r--r--io_import_scene_mhx.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/io_import_scene_mhx.py b/io_import_scene_mhx.py
index ef2ebacf..4364199f 100644
--- a/io_import_scene_mhx.py
+++ b/io_import_scene_mhx.py
@@ -2999,6 +2999,8 @@ class ImportMhx(bpy.types.Operator, ImportHelper):
#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: