mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
modified 'is_context' property
This commit is contained in:
parent
2d7910a264
commit
736123d1c2
1 changed files with 10 additions and 2 deletions
|
|
@ -458,14 +458,22 @@ class AbstractPlaceholder:
|
|||
|
||||
@property
|
||||
def is_context(self):
|
||||
"""Return placeholder type
|
||||
"""Check if is placeholder context type.
|
||||
|
||||
context_asset: For loading current asset
|
||||
linked_asset: For loading linked assets
|
||||
|
||||
Question:
|
||||
There seems to be more build options and this property is not used,
|
||||
should be removed?
|
||||
|
||||
Returns:
|
||||
bool: true if placeholder is a context placeholder
|
||||
"""
|
||||
return self.data.get('builder_type') == 'context_asset'
|
||||
|
||||
return self.builder_type == "context_asset"
|
||||
|
||||
@property
|
||||
def is_valid(self):
|
||||
"""Test validity of placeholder.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue