diff options
author | Julien Duroure <julien.duroure@gmail.com> | 2018-11-25 08:50:10 +0300 |
---|---|---|
committer | Julien Duroure <julien.duroure@gmail.com> | 2018-11-25 08:50:10 +0300 |
commit | c82a19edcba009dcb80243d1eb1d6e5f81925277 (patch) | |
tree | b9241279727f94b2486982951d049612adb18ecc /io_scene_gltf2/blender | |
parent | acd39fc1b03e1f4a2d0b670189cde18db50a52e2 (diff) |
glTF importer: fix bug importing scene with multiple root nodes
Diffstat (limited to 'io_scene_gltf2/blender')
-rwxr-xr-x | io_scene_gltf2/blender/imp/gltf2_blender_scene.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/io_scene_gltf2/blender/imp/gltf2_blender_scene.py b/io_scene_gltf2/blender/imp/gltf2_blender_scene.py index c5e89659..14310fb8 100755 --- a/io_scene_gltf2/blender/imp/gltf2_blender_scene.py +++ b/io_scene_gltf2/blender/imp/gltf2_blender_scene.py @@ -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) |