mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
addedd few modifications to discovery
This commit is contained in:
parent
52556fc9ce
commit
17a97044b9
1 changed files with 6 additions and 5 deletions
|
|
@ -11,13 +11,14 @@ class MultipleNotesServer(ServerAction):
|
|||
_none_category = "__NONE__"
|
||||
|
||||
def discover(self, session, entities, event):
|
||||
''' Validation '''
|
||||
valid = True
|
||||
"""Show action only on AssetVersions."""
|
||||
if not entities:
|
||||
return False
|
||||
|
||||
for entity in entities:
|
||||
if entity.entity_type.lower() != "assetversion":
|
||||
valid = False
|
||||
break
|
||||
return valid
|
||||
return False
|
||||
return True
|
||||
|
||||
def interface(self, session, entities, event):
|
||||
event_source = event["source"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue