Skip to content
Snippets Groups Projects
Commit 1edc2417 authored by Campbell Barton's avatar Campbell Barton
Browse files

fix [#28405] Importing certain 3DS files takes a very long time

parent 6b43b039
No related branches found
No related tags found
No related merge requests found
......@@ -755,12 +755,16 @@ def process_next_chunk(file, previous_chunk, importedObjects, IMAGE_SEARCH):
putContextMesh(contextMesh_vertls, contextMesh_facels, contextMeshMaterials)
# Assign parents to objects
# check _if_ we need to assign first because doing so recalcs the depsgraph
for ind, ob in enumerate(object_list):
parent = object_parent[ind]
if parent == ROOT_OBJECT:
ob.parent = None
if ob.parent is not None:
ob.parent = None
else:
ob.parent = object_list[parent]
if ob.parent != object_list[parent]:
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
for ind, ob in enumerate(object_list):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment