glTF importer: fix bug importing scene with multiple root nodes

This commit is contained in:
Julien Duroure 2018-11-25 06:50:10 +01:00
parent acd39fc1b0
commit c82a19edcb
1 changed files with 3 additions and 2 deletions

View File

@ -89,6 +89,7 @@ class BlenderScene():
bpy.ops.object.parent_clear(type='CLEAR_KEEP_TRANSFORM')
bpy.context.scene.collection.objects.unlink(obj_rotation)
bpy.data.objects.remove(obj_rotation)
# remove object
bpy.context.scene.collection.objects.unlink(obj_rotation)
bpy.data.objects.remove(obj_rotation)