diff options
author | Thomas Larsson <thomas_larsson_01@hotmail.com> | 2013-07-13 19:58:32 +0400 |
---|---|---|
committer | Thomas Larsson <thomas_larsson_01@hotmail.com> | 2013-07-13 19:58:32 +0400 |
commit | 81626622f867b42bc7240ca1fa85d5dae6e9e306 (patch) | |
tree | c55f6c9c2767693f2571bde368527cc16089e4bb /io_import_scene_mhx.py | |
parent | 52a1f47e32d23a6016f44310e38a61127b9a63af (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.py | 2 |
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: |