[Bf-blender-cvs] [a03e16224bb] master: Missed last commit (workspace template checks)

Campbell Barton noreply at git.blender.org
Mon Apr 29 15:49:01 CEST 2019


Commit: a03e16224bbfad447dfdd486fd426f4bae00a6c0
Author: Campbell Barton
Date:   Mon Apr 29 23:45:11 2019 +1000
Branches: master
https://developer.blender.org/rBa03e16224bbfad447dfdd486fd426f4bae00a6c0

Missed last commit (workspace template checks)

===================================================================

M	source/blender/blenloader/intern/versioning_defaults.c

===================================================================

diff --git a/source/blender/blenloader/intern/versioning_defaults.c b/source/blender/blenloader/intern/versioning_defaults.c
index 7674c7cadcd..c54e60a7635 100644
--- a/source/blender/blenloader/intern/versioning_defaults.c
+++ b/source/blender/blenloader/intern/versioning_defaults.c
@@ -302,7 +302,12 @@ void BLO_update_defaults_startup_blend(Main *bmain, const char *app_template)
         }
       }
       else if (STREQ(app_template, "2D_Animation")) {
-        if (STR_ELEM(screen->id.name + 2, "Sculpting", "Texture Paint")) {
+        if (STR_ELEM(screen->id.name + 2, "2D Animation", "2D Full Canvas")) {
+          show_tool_header = true;
+        }
+      }
+      else if (STREQ(app_template, "Sculpting")) {
+        if (STR_ELEM(screen->id.name + 2, "Sculpting")) {
           show_tool_header = true;
         }
       }



More information about the Bf-blender-cvs mailing list