mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
Set the default value for new entries to be scoped to asset, task so that copying from older releases automatically sets it to both. This way, also newly added entries will have both by default which is better than none.
This commit is contained in:
parent
74971bd3dc
commit
cd1c2cdb0f
1 changed files with 5 additions and 1 deletions
|
|
@ -88,7 +88,11 @@ class ContributionLayersModel(BaseSettingsModel):
|
|||
regex="[A-Za-z0-9_-]+",
|
||||
title="Name")
|
||||
scope: list[str] = SettingsField(
|
||||
default_factory=list,
|
||||
# This should actually be returned from a callable to `default_factory`
|
||||
# because lists are mutable. However, the frontend can't interpret
|
||||
# the callable. It will fail to apply it as the default. Specifying
|
||||
# this default directly did not show any ill side effects.
|
||||
default=["asset", "shot"],
|
||||
title="Scope",
|
||||
enum_resolver=usd_contribution_layer_types)
|
||||
order: int = SettingsField(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue