mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
🐛 fix comment and condition
This commit is contained in:
parent
deacb2853e
commit
c1b9eff2df
1 changed files with 5 additions and 3 deletions
|
|
@ -129,10 +129,12 @@ class LoaderPlugin(list):
|
|||
plugin_repre_names = cls.get_representations()
|
||||
plugin_product_types = cls.product_types
|
||||
plugin_product_base_types = cls.product_base_types
|
||||
# If product type isn't defined on the loader plugin,
|
||||
|
||||
# If the product base type isn't defined on the loader plugin,
|
||||
# then we will use the product types.
|
||||
plugin_product_filter = (
|
||||
plugin_product_base_types or plugin_product_types)
|
||||
plugin_product_filter = plugin_product_base_types
|
||||
if plugin_product_filter is None:
|
||||
plugin_product_filter = plugin_product_types
|
||||
repre_entity = context.get("representation")
|
||||
product_entity = context["product"]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue