Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-09-07 09:36:02 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-09-07 09:36:02 +0300
commit49fa58e3309f7f980f2bfe184ceef541a9bfdfaf (patch)
treeedd4a2c36aba9265727bb6f2fcddfe21058e020e
parent066afa219839b6953c1cb6a0b1ba3c35002bc7a2 (diff)
Gizmo: fix extrude handles
Only use the 2D selection function when 3D selection isn't defined. Regression from e18a2c4ed7b
-rw-r--r--source/blender/windowmanager/gizmo/intern/wm_gizmo_map.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/windowmanager/gizmo/intern/wm_gizmo_map.c b/source/blender/windowmanager/gizmo/intern/wm_gizmo_map.c
index 973addc506d..583130a0099 100644
--- a/source/blender/windowmanager/gizmo/intern/wm_gizmo_map.c
+++ b/source/blender/windowmanager/gizmo/intern/wm_gizmo_map.c
@@ -569,7 +569,8 @@ static wmGizmo *gizmo_find_intersected_3d(
int select_id = 0;
for (LinkData *link = visible_gizmos->first; link; link = link->next, select_id++) {
wmGizmo *gz = link->data;
- if (gz->type->test_select) {
+ /* With both defined, favor the 3D, incase the manipulator can be used in 2D or 3D views. */
+ if (gz->type->test_select && (gz->type->draw_select == NULL)) {
if ((*r_part = gz->type->test_select(C, gz, co)) != -1) {
hit = select_id;
result = gz;