mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Merge branch 'enhancement/OP-3807_playblast_profiles' of https://github.com/tokejepsen/pype into enhancement/OP-3807_playblast_profiles
This commit is contained in:
commit
2e7d286736
6 changed files with 26 additions and 19 deletions
|
|
@ -11,10 +11,10 @@ class ColorEntity(InputEntity):
|
|||
|
||||
def _item_initialization(self):
|
||||
self.valid_value_types = (list, )
|
||||
self.use_alpha = self.schema_data.get("use_alpha", True)
|
||||
self.value_on_not_set = self.convert_to_valid_type(
|
||||
self.schema_data.get("default", [0, 0, 0, 255])
|
||||
)
|
||||
self.use_alpha = self.schema_data.get("use_alpha", True)
|
||||
|
||||
def set_override_state(self, *args, **kwargs):
|
||||
super(ColorEntity, self).set_override_state(*args, **kwargs)
|
||||
|
|
@ -66,6 +66,6 @@ class ColorEntity(InputEntity):
|
|||
new_value.append(item)
|
||||
|
||||
# Make sure
|
||||
if hasattr(self, "use_alpha") and not self.use_alpha:
|
||||
if not self.use_alpha:
|
||||
new_value[3] = 255
|
||||
return new_value
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue