glTF importer: fix previous commit

This commit is contained in:
Julien Duroure 2019-05-07 10:33:50 +02:00
parent b82ea71146
commit 745b87af35
1 changed files with 1 additions and 1 deletions

View File

@ -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):