diff --git a/io_import_scene_mhx.py b/io_import_scene_mhx.py index ef2ebacfe9b38c28aee3b558a61c1d7b9b6b8898..4364199ffa902d0a68e9d84d80751558abdc749b 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: