[Bf-blender-cvs] [1d8a5b3772c] soc-2020-outliner: Fix Mode column offset in orphan mode

Nathan Craddock noreply at git.blender.org
Sat Jun 20 05:56:44 CEST 2020


Commit: 1d8a5b3772c2b23098ca8d7b7625709e8cf7f6c3
Author: Nathan Craddock
Date:   Fri Jun 19 19:53:53 2020 -0600
Branches: soc-2020-outliner
https://developer.blender.org/rB1d8a5b3772c2b23098ca8d7b7625709e8cf7f6c3

Fix Mode column offset in orphan mode

Was improperly treating the display mode as a bit flag

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

M	source/blender/editors/space_outliner/outliner_draw.c

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

diff --git a/source/blender/editors/space_outliner/outliner_draw.c b/source/blender/editors/space_outliner/outliner_draw.c
index 1d0c20e32db..958d5ee8a70 100644
--- a/source/blender/editors/space_outliner/outliner_draw.c
+++ b/source/blender/editors/space_outliner/outliner_draw.c
@@ -3768,7 +3768,7 @@ static void outliner_draw_tree(bContext *C,
 
   /* Move the tree a unit left in view layer mode */
   short left_column_offset = use_left_column ? UI_UNIT_X : 0;
-  if (soops->outlinevis & SO_VIEW_LAYER) {
+  if (soops->outlinevis == SO_VIEW_LAYER) {
     left_column_offset -= UI_UNIT_X;
   }



More information about the Bf-blender-cvs mailing list