mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
Remove unused dependency, fix collect_render
This commit is contained in:
parent
62fa330417
commit
8d58b284fc
2 changed files with 4 additions and 5 deletions
|
|
@ -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"]
|
||||
|
||||
|
|
|
|||
|
|
@ -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."
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue