diff options
Diffstat (limited to 'source/blender/windowmanager/gizmo/intern/wm_gizmo_map.c')
-rw-r--r-- | source/blender/windowmanager/gizmo/intern/wm_gizmo_map.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/source/blender/windowmanager/gizmo/intern/wm_gizmo_map.c b/source/blender/windowmanager/gizmo/intern/wm_gizmo_map.c index 33c58f8563d..db6b24376ca 100644 --- a/source/blender/windowmanager/gizmo/intern/wm_gizmo_map.c +++ b/source/blender/windowmanager/gizmo/intern/wm_gizmo_map.c @@ -369,8 +369,9 @@ static void gizmomap_prepare_drawing(wmGizmoMap *gzmap, continue; } - /* needs to be initialized on first draw */ - /* XXX weak: Gizmo-group may skip refreshing if it's invisible (map gets untagged nevertheless) */ + /* Needs to be initialized on first draw. */ + /* XXX weak: Gizmo-group may skip refreshing if it's invisible + * (map gets untagged nevertheless). */ if (gzmap->update_flag[drawstep] & GIZMOMAP_IS_REFRESH_CALLBACK) { /* force refresh again. */ gzgroup->init_flag &= ~WM_GIZMOGROUP_INIT_REFRESH; @@ -402,8 +403,9 @@ static void gizmos_draw_list(const wmGizmoMap *gzmap, const bContext *C, ListBas return; } - /* TODO this will need it own shader probably? don't think it can be handled from that point though. */ - /* const bool use_lighting = (U.gizmo_flag & V3D_GIZMO_SHADED) != 0; */ + /* TODO(campbell): This will need it own shader probably? + * Don't think it can be handled from that point though. */ + /* const bool use_lighting = (U.gizmo_flag & V3D_GIZMO_SHADED) != 0; */ bool is_depth_prev = false; @@ -414,7 +416,8 @@ static void gizmos_draw_list(const wmGizmoMap *gzmap, const bContext *C, ListBas bool is_depth = (gz->parent_gzgroup->type->flag & WM_GIZMOGROUPTYPE_DEPTH_3D) != 0; - /* Weak! since we don't 100% support depth yet (select ignores depth) always show highlighted */ + /* Weak! since we don't 100% support depth yet (select ignores depth) + * always show highlighted. */ if (is_depth && (gz->state & WM_GIZMO_STATE_HIGHLIGHT)) { is_depth = false; } @@ -472,7 +475,8 @@ static void gizmo_draw_select_3D_loop(const bContext *C, int select_id = 0; wmGizmo *gz; - /* TODO(campbell): this depends on depth buffer being written to, currently broken for the 3D view. */ + /* TODO(campbell): this depends on depth buffer being written to, + * currently broken for the 3D view. */ bool is_depth_prev = false; bool is_depth_skip_prev = false; |