remove project overrides from project settings on new project creation

This commit is contained in:
iLLiCiTiT 2021-06-03 23:54:11 +02:00
parent c26f44e994
commit 71f918f2cb

View file

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