mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
remove project overrides from project settings on new project creation
This commit is contained in:
parent
c26f44e994
commit
71f918f2cb
1 changed files with 4 additions and 0 deletions
|
|
@ -91,6 +91,10 @@ def create_project(
|
|||
# and Anatomy
|
||||
try:
|
||||
project_settings_entity = ProjectSettings(project_name)
|
||||
# Remove project overrides will set all anatomy values to defaults
|
||||
# - anatomy will still be overriden
|
||||
project_anatomy = project_settings_entity["project_anatomy"]
|
||||
project_anatomy.remove_from_project_override()
|
||||
project_settings_entity.save()
|
||||
except SaveWarningExc as exc:
|
||||
print(str(exc))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue