diff options
author | Julien Duroure <julien.duroure@gmail.com> | 2019-05-07 11:33:50 +0300 |
---|---|---|
committer | Julien Duroure <julien.duroure@gmail.com> | 2019-05-07 11:33:50 +0300 |
commit | 745b87af35c7c5a7f8d83c610b869c60bc4dc215 (patch) | |
tree | 4fd199d08a9c1cca4d89c26004f00518b25d564b /io_scene_gltf2/blender | |
parent | b82ea71146e08c6c2e1b97da59d93f6563201990 (diff) |
glTF importer: fix previous commit
Diffstat (limited to 'io_scene_gltf2/blender')
-rwxr-xr-x | io_scene_gltf2/blender/imp/gltf2_blender_scene.py | 2 |
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): |