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:
authorJulien Duroure <julien.duroure@gmail.com>2018-11-25 08:50:10 +0300
committerJulien Duroure <julien.duroure@gmail.com>2018-11-25 08:50:10 +0300
commitc82a19edcba009dcb80243d1eb1d6e5f81925277 (patch)
treeb9241279727f94b2486982951d049612adb18ecc
parentacd39fc1b03e1f4a2d0b670189cde18db50a52e2 (diff)
glTF importer: fix bug importing scene with multiple root nodes
-rwxr-xr-xio_scene_gltf2/blender/imp/gltf2_blender_scene.py5
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)