mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Do not try to continue with logic if the instance isn't valid for the plug-in anyway
This commit is contained in:
parent
5f7d6bd313
commit
11bb657d35
1 changed files with 4 additions and 0 deletions
|
|
@ -600,6 +600,10 @@ class CollectUSDLayerContributionsHoudiniLook(CollectUSDLayerContributions):
|
|||
|
||||
@classmethod
|
||||
def get_attr_defs_for_instance(cls, create_context, instance):
|
||||
# Filtering of instance, if needed, can be customized
|
||||
if not cls.instance_matches_plugin_families(instance):
|
||||
return []
|
||||
|
||||
defs = super().get_attr_defs_for_instance(create_context, instance)
|
||||
|
||||
# Update default for department layer to look
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue