do not expect workfileInstances constains only new type instance data (#6015)

This commit is contained in:
Jakub Trllo 2023-12-06 17:58:44 +01:00 committed by GitHub
parent f2fd1750b3
commit f6b43481b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -73,7 +73,7 @@ class CollectRenderInstances(pyblish.api.InstancePlugin):
render_layer_id = creator_attributes["render_layer_instance_id"]
for in_data in instance.context.data["workfileInstances"]:
if (
in_data["creator_identifier"] == "render.layer"
in_data.get("creator_identifier") == "render.layer"
and in_data["instance_id"] == render_layer_id
):
render_layer_data = in_data