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>2019-04-20 11:02:28 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-04-20 11:02:28 +0300
commite63eb6ed2696c5d52b35972ab7a1bbda7b5bdc90 (patch)
tree94ae2928a62f96acd8d78796dd2f900220d5aed8 /source/blender/windowmanager/gizmo/intern/wm_gizmo_map.c
parent44ca116ca2aec7651e1fdab9cba6f63c244a8f93 (diff)
Cleanup: comment line length (windowmanager)
Diffstat (limited to 'source/blender/windowmanager/gizmo/intern/wm_gizmo_map.c')
-rw-r--r--source/blender/windowmanager/gizmo/intern/wm_gizmo_map.c16
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;