[Bf-extensions-cvs] [c82a19ed] blender2.8: glTF importer: fix bug importing scene with multiple root nodes

Julien Duroure noreply at git.blender.org
Sun Nov 25 06:52:21 CET 2018


Commit: c82a19edcba009dcb80243d1eb1d6e5f81925277
Author: Julien Duroure
Date:   Sun Nov 25 06:50:10 2018 +0100
Branches: blender2.8
https://developer.blender.org/rBAc82a19edcba009dcb80243d1eb1d6e5f81925277

glTF importer: fix bug importing scene with multiple root nodes

===================================================================

M	io_scene_gltf2/blender/imp/gltf2_blender_scene.py

===================================================================

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)



More information about the Bf-extensions-cvs mailing list