Skip to content

Commit

Permalink
Merge pull request #1 from llennoco22/llennoco-collection-patch
Browse files Browse the repository at this point in the history
Import model into current collection.
  • Loading branch information
llennoco22 authored Dec 2, 2021
2 parents c42e852 + fc37ec9 commit 9d8e44f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/blender/import_cast.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def importModelNode(model, path):
collection.objects.link(meshObj)

# Relink the collection after the mesh is built
bpy.context.scene.collection.children.link(collection)
bpy.context.view_layer.active_layer_collection.collection.children.link(collection)


def importRootNode(node, path):
Expand Down

0 comments on commit 9d8e44f

Please sign in to comment.