Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Oeser <info@graphics-engineer.com>2018-11-16 16:22:59 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2018-11-16 16:22:59 +0300
commit92ebf635ee2a9ddbc7fbf4a0c06b9732ee555b27 (patch)
tree6885ac810fa5f59f21de6a4874436dec0a81baee
parent6a5fcb65388fd329d30c6c55a3676b2e9d259d16 (diff)
Fix T57632: 3DS Importer Exception when assigning an object as a parent
to its self
-rw-r--r--io_scene_3ds/import_3ds.py5
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