From f896d16c62e92be5ede373e2b29a27a65233e12b Mon Sep 17 00:00:00 2001
From: Thomas Larsson <thomas_larsson_01@hotmail.com>
Date: Wed, 23 Oct 2013 02:48:02 +0000
Subject: [PATCH] Silenced error message when mesh without parent is active.

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

diff --git a/io_import_scene_mhx.py b/io_import_scene_mhx.py
index 20f5248af..9c6db39e1 100644
--- a/io_import_scene_mhx.py
+++ b/io_import_scene_mhx.py
@@ -38,7 +38,7 @@ Alternatively, run the script in the script editor (Alt-P), and access from the
 bl_info = {
     'name': 'Import: MakeHuman (.mhx)',
     'author': 'Thomas Larsson',
-    'version': "1.16.9",
+    'version': "1.16.10",
     "blender": (2, 68, 0),
     'location': "File > Import > MakeHuman (.mhx)",
     'description': 'Import files in the MakeHuman eXchange format (.mhx)',
@@ -3921,7 +3921,7 @@ def getProps(rig, prefix):
 def hasProps(ob, prefix):
     if ob is None:
         return False
-    if ob.type == 'MESH':
+    if ob.type == 'MESH' and ob.parent:
         rig = ob.parent
     elif ob.type == 'ARMATURE':
         rig = ob
-- 
GitLab