[Bf-blender-cvs] [ccf076d8042] temp-lineart-contained: Tweak the collection propery tab location

Sebastian Parborg noreply at git.blender.org
Tue Mar 16 15:46:55 CET 2021


Commit: ccf076d804251f763069db7d72b016dbe575ff37
Author: Sebastian Parborg
Date:   Tue Mar 16 15:46:28 2021 +0100
Branches: temp-lineart-contained
https://developer.blender.org/rBccf076d804251f763069db7d72b016dbe575ff37

Tweak the collection propery tab location

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

M	source/blender/editors/space_buttons/space_buttons.c

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

diff --git a/source/blender/editors/space_buttons/space_buttons.c b/source/blender/editors/space_buttons/space_buttons.c
index 4df786b3d6d..43d45db38e2 100644
--- a/source/blender/editors/space_buttons/space_buttons.c
+++ b/source/blender/editors/space_buttons/space_buttons.c
@@ -194,10 +194,6 @@ int ED_buttons_tabs_list(SpaceProperties *sbuts, short *context_tabs_array)
     context_tabs_array[length] = BCONTEXT_VIEW_LAYER;
     length++;
   }
-  if (sbuts->pathflag & (1 << BCONTEXT_VIEW_LAYER)) {
-    context_tabs_array[length] = BCONTEXT_COLLECTION;
-    length++;
-  }
   if (sbuts->pathflag & (1 << BCONTEXT_SCENE)) {
     context_tabs_array[length] = BCONTEXT_SCENE;
     length++;
@@ -210,6 +206,14 @@ int ED_buttons_tabs_list(SpaceProperties *sbuts, short *context_tabs_array)
     context_tabs_array[length] = -1;
     length++;
   }
+  if (sbuts->pathflag & (1 << BCONTEXT_VIEW_LAYER)) {
+    context_tabs_array[length] = BCONTEXT_COLLECTION;
+    length++;
+  }
+  if (length != 0) {
+    context_tabs_array[length] = -1;
+    length++;
+  }
   if (sbuts->pathflag & (1 << BCONTEXT_OBJECT)) {
     context_tabs_array[length] = BCONTEXT_OBJECT;
     length++;



More information about the Bf-blender-cvs mailing list