From cd1c2cdb0f38f611a4133fc4d8eaba9a94d5e3c7 Mon Sep 17 00:00:00 2001 From: Roy Nieterau Date: Wed, 17 Dec 2025 11:57:29 +0100 Subject: [PATCH] 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. --- server/settings/publish_plugins.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/settings/publish_plugins.py b/server/settings/publish_plugins.py index 90f6d1c5ef..6b1ee5562f 100644 --- a/server/settings/publish_plugins.py +++ b/server/settings/publish_plugins.py @@ -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(