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:
Roy Nieterau 2025-12-17 11:57:29 +01:00
parent 74971bd3dc
commit cd1c2cdb0f

View file

@ -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(