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>2019-05-07 11:33:50 +0300
committerJulien Duroure <julien.duroure@gmail.com>2019-05-07 11:33:50 +0300
commit745b87af35c7c5a7f8d83c610b869c60bc4dc215 (patch)
tree4fd199d08a9c1cca4d89c26004f00518b25d564b /io_scene_gltf2
parentb82ea71146e08c6c2e1b97da59d93f6563201990 (diff)
glTF importer: fix previous commit
Diffstat (limited to 'io_scene_gltf2')
-rwxr-xr-xio_scene_gltf2/blender/imp/gltf2_blender_scene.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_scene_gltf2/blender/imp/gltf2_blender_scene.py b/io_scene_gltf2/blender/imp/gltf2_blender_scene.py
index d2d63760..400e66e4 100755
--- a/io_scene_gltf2/blender/imp/gltf2_blender_scene.py
+++ b/io_scene_gltf2/blender/imp/gltf2_blender_scene.py
@@ -159,7 +159,7 @@ class BlenderScene():
# Make first root object the new active one
if list_nodes is not None:
- bpy.context.scene.objects.active = bpy.data.objects[gltf.data.nodes[list_nodes[0]].blender_object]
+ bpy.context.view_layer.objects.active = bpy.data.objects[gltf.data.nodes[list_nodes[0]].blender_object]
@staticmethod
def get_root_nodes(gltf):