[Bf-blender-cvs] [def6f13b77b] soc-2020-outliner: Fix: Add drag lock to mode column icons

Nathan Craddock noreply at git.blender.org
Thu Jul 2 05:29:38 CEST 2020


Commit: def6f13b77b26096b64bdca458b2d8f04e5d5a66
Author: Nathan Craddock
Date:   Wed Jul 1 17:27:03 2020 -0600
Branches: soc-2020-outliner
https://developer.blender.org/rBdef6f13b77b26096b64bdca458b2d8f04e5d5a66

Fix: Add drag lock to mode column icons

Allow "sloppy" drag over the column

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

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 a740a6014ef..777f1be4e4f 100644
--- a/source/blender/editors/space_outliner/outliner_draw.c
+++ b/source/blender/editors/space_outliner/outliner_draw.c
@@ -2009,6 +2009,7 @@ static void outliner_draw_mode_column_toggle(uiBlock *block,
                            0.0,
                            TIP_("Remove from the current mode"));
         UI_but_func_set(but, outliner_mode_toggle_fn, tselem, NULL);
+        UI_but_flag_enable(but, UI_BUT_DRAG_LOCK);
       }
       else {
         /* Not all objects have particle systems */
@@ -2030,6 +2031,7 @@ static void outliner_draw_mode_column_toggle(uiBlock *block,
                            0.0,
                            TIP_("Add to the current mode"));
         UI_but_func_set(but, outliner_mode_toggle_fn, tselem, NULL);
+        UI_but_flag_enable(but, UI_BUT_DRAG_LOCK);
       }
     }
   }



More information about the Bf-blender-cvs mailing list