From c25f7c92dd8facc38f5410385fd7e86d7ebf5931 Mon Sep 17 00:00:00 2001 From: aardschok Date: Mon, 9 Oct 2017 16:29:42 +0200 Subject: [PATCH] restored switching from render layers in collect_look --- colorbleed/plugins/maya/publish/collect_look.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/colorbleed/plugins/maya/publish/collect_look.py b/colorbleed/plugins/maya/publish/collect_look.py index 6e4e17c535..02aa15c835 100644 --- a/colorbleed/plugins/maya/publish/collect_look.py +++ b/colorbleed/plugins/maya/publish/collect_look.py @@ -68,7 +68,7 @@ class CollectLook(pyblish.api.InstancePlugin): def process(self, instance): """Collect the Look in the instance with the correct layer settings""" - with context.renderlayer("defaultRenderLayer"): + with context.renderlayer(instance.data["renderlayer"]): self.collect(instance) def collect(self, instance): @@ -98,6 +98,7 @@ class CollectLook(pyblish.api.InstancePlugin): verbose) if not member_data: continue + sets[objset]["members"].append(member_data) # Remove sets that didn't have any members assigned in the end