From 81626622f867b42bc7240ca1fa85d5dae6e9e306 Mon Sep 17 00:00:00 2001
From: Thomas Larsson <thomas_larsson_01@hotmail.com>
Date: Sat, 13 Jul 2013 15:58:32 +0000
Subject: [PATCH] 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.

---
 io_import_scene_mhx.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/io_import_scene_mhx.py b/io_import_scene_mhx.py
index ef2ebacfe..4364199ff 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:
-- 
GitLab