[Bf-blender-cvs] [1d48fa22069] master: Correct last commit (gizmo order was reversed)

Campbell Barton noreply at git.blender.org
Thu May 23 09:21:41 CEST 2019


Commit: 1d48fa2206934688a4c1b303279c26b3a8d1a5ec
Author: Campbell Barton
Date:   Thu May 23 17:21:11 2019 +1000
Branches: master
https://developer.blender.org/rB1d48fa2206934688a4c1b303279c26b3a8d1a5ec

Correct last commit (gizmo order was reversed)

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

M	source/blender/windowmanager/gizmo/intern/wm_gizmo_group.c

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

diff --git a/source/blender/windowmanager/gizmo/intern/wm_gizmo_group.c b/source/blender/windowmanager/gizmo/intern/wm_gizmo_group.c
index 9f0793fc742..85ebd2baefa 100644
--- a/source/blender/windowmanager/gizmo/intern/wm_gizmo_group.c
+++ b/source/blender/windowmanager/gizmo/intern/wm_gizmo_group.c
@@ -195,7 +195,7 @@ wmGizmo *wm_gizmogroup_find_intersected_gizmo(const wmGizmoGroup *gzgroup,
 void wm_gizmogroup_intersectable_gizmos_to_list(const wmGizmoGroup *gzgroup,
                                                 BLI_Buffer *visible_gizmos)
 {
-  for (wmGizmo *gz = gzgroup->gizmos.first; gz; gz = gz->next) {
+  for (wmGizmo *gz = gzgroup->gizmos.last; gz; gz = gz->prev) {
     if ((gz->flag & (WM_GIZMO_HIDDEN | WM_GIZMO_HIDDEN_SELECT)) == 0) {
       if (((gzgroup->type->flag & WM_GIZMOGROUPTYPE_3D) &&
            (gz->type->draw_select || gz->type->test_select)) ||



More information about the Bf-blender-cvs mailing list