[Bf-blender-cvs] [f7310fae94e] soc-2019-outliner: Outliner: Allow clicking on row icons
Nathan Craddock
noreply at git.blender.org
Thu Jul 18 05:46:07 CEST 2019
Commit: f7310fae94e29faa28a17bee7b6797c186e9f54f
Author: Nathan Craddock
Date: Wed Jul 17 21:39:35 2019 -0600
Branches: soc-2019-outliner
https://developer.blender.org/rBf7310fae94e29faa28a17bee7b6797c186e9f54f
Outliner: Allow clicking on row icons
The feature to click on row icons was removed (presumably because
the icons now draw stacked with a number, rather than individually).
This brings back support for clicking because the benefits of
clicking on the icon without opening the element outweighs the con
of not being able to select grouped elements. A solution for that
is being worked on.
===================================================================
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 bab62f68228..b318d58a107 100644
--- a/source/blender/editors/space_outliner/outliner_draw.c
+++ b/source/blender/editors/space_outliner/outliner_draw.c
@@ -2739,6 +2739,8 @@ static void outliner_draw_iconrow_doit(uiBlock *block,
if (num_elements > 1) {
outliner_draw_iconrow_number(fstyle, *offsx, ys, num_elements);
}
+ te->flag |= TE_ICONROW;
+
(*offsx) += UI_UNIT_X;
}
More information about the Bf-blender-cvs
mailing list