mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
Add validation for only single folder products selection
This commit is contained in:
parent
dc987ed64f
commit
651fc3f068
1 changed files with 4 additions and 0 deletions
|
|
@ -28,6 +28,10 @@ class PushToProject(load.ProductLoaderPlugin):
|
|||
if not filtered_contexts:
|
||||
raise LoadError("Nothing to push for your selection")
|
||||
|
||||
folder_ids = [context["folder"]["id"] for context in filtered_contexts]
|
||||
if len(folder_ids) > 1:
|
||||
raise LoadError("Please select products from single folder")
|
||||
|
||||
push_tool_script_path = os.path.join(
|
||||
AYON_CORE_ROOT,
|
||||
"tools",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue