diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2018-11-16 16:22:59 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2018-11-16 16:22:59 +0300 |
commit | 92ebf635ee2a9ddbc7fbf4a0c06b9732ee555b27 (patch) | |
tree | 6885ac810fa5f59f21de6a4874436dec0a81baee | |
parent | 6a5fcb65388fd329d30c6c55a3676b2e9d259d16 (diff) |
Fix T57632: 3DS Importer Exception when assigning an object as a parent
to its self
-rw-r--r-- | io_scene_3ds/import_3ds.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/io_scene_3ds/import_3ds.py b/io_scene_3ds/import_3ds.py index 862fe2a7..b9de42d5 100644 --- a/io_scene_3ds/import_3ds.py +++ b/io_scene_3ds/import_3ds.py @@ -828,7 +828,10 @@ def process_next_chunk(file, previous_chunk, importedObjects, IMAGE_SEARCH): ob.parent = None else: if ob.parent != object_list[parent]: - ob.parent = object_list[parent] + if ob == object_list[parent]: + print(' warning: Cannot assign self to parent ', ob) + else: + ob.parent = object_list[parent] # pivot_list[ind] += pivot_list[parent] # XXX, not sure this is correct, should parent space matrix be applied before combining? # fix pivots |