Commit: 1fb733ca74b160a1409fbcd888f81972061ea12d
Author: Nathan Craddock
Date:   Wed Jun 17 14:30:47 2020 -0600
Branches: soc-2020-outliner
https://developer.blender.org/rB1fb733ca74b160a1409fbcd888f81972061ea12d

Don't swap tabs if properties editor is pinned

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

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

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

diff --git a/source/blender/editors/space_buttons/buttons_context.c 
b/source/blender/editors/space_buttons/buttons_context.c
index 3d35c83f908..f563bed3fdd 100644
--- a/source/blender/editors/space_buttons/buttons_context.c
+++ b/source/blender/editors/space_buttons/buttons_context.c
@@ -111,8 +111,11 @@ void ED_buttons_set_context(const bContext *C, const short 
context)
 
     if (sl->spacetype == SPACE_PROPERTIES) {
       SpaceProperties *sbuts = (SpaceProperties *)sl;
-      sbuts->mainbuser = context;
-      sbuts->mainb = sbuts->mainbuser;
+
+      if (!sbuts->pinid) {
+        sbuts->mainbuser = context;
+        sbuts->mainb = sbuts->mainbuser;
+      }
     }
   }
 }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to