From 71f918f2cb72137f8a473175ab8d8fb87bbd8bfd Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Thu, 3 Jun 2021 23:54:11 +0200 Subject: [PATCH] remove project overrides from project settings on new project creation --- openpype/lib/avalon_context.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/openpype/lib/avalon_context.py b/openpype/lib/avalon_context.py index c4217cc6d5..9695e1e89a 100644 --- a/openpype/lib/avalon_context.py +++ b/openpype/lib/avalon_context.py @@ -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))