mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
use 'get_project_product_base_types' only if is implemented
This commit is contained in:
parent
39d45b9fbe
commit
8ecb0331f5
1 changed files with 5 additions and 2 deletions
|
|
@ -283,8 +283,11 @@ class ProductsModel:
|
|||
|
||||
cache = self._product_base_type_items_cache[project_name]
|
||||
if not cache.is_valid:
|
||||
product_base_types = ayon_api.get_project_product_base_types(
|
||||
project_name)
|
||||
product_base_types = []
|
||||
if hasattr(ayon_api, "get_project_product_base_types"):
|
||||
product_base_types = ayon_api.get_project_product_base_types(
|
||||
project_name
|
||||
)
|
||||
cache.update_data([
|
||||
product_base_type_item_from_data(product_base_type)
|
||||
for product_base_type in product_base_types
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue