Remove unused dependency, fix collect_render

This commit is contained in:
Sharkitty 2023-11-13 17:21:28 +01:00
parent 62fa330417
commit 8d58b284fc
2 changed files with 4 additions and 5 deletions

View file

@ -20,10 +20,7 @@ from .ops import (
MainThreadItem,
execute_in_main_thread
)
from .lib import (
imprint,
get_selection
)
from .lib import imprint
VALID_EXTENSIONS = [".blend", ".json", ".abc", ".fbx"]

View file

@ -73,7 +73,9 @@ class CollectBlenderRender(pyblish.api.InstancePlugin):
def process(self, instance):
context = instance.context
render_data = bpy.data.collections[str(instance)].get("render_data")
render_data = bpy.data.collections[
instance.data["instance_node"]["name"]
].get("render_data")
assert render_data, "No render data found."