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-01-15 15:24:20 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-01-15 15:30:31 +0300
commitb8e8c0e325d213f2dcf4adad5506989fa224716e (patch)
treeadb3d7fa8735426ea856a929f562655b2eaf64cb /source/blender/editors/mask
parent4226ee0b71fec6f08897dacf3d6632526618acca (diff)
Cleanup: comment line length (editors)
Prevents clang-format wrapping text before comments.
Diffstat (limited to 'source/blender/editors/mask')
-rw-r--r--source/blender/editors/mask/mask_draw.c22
-rw-r--r--source/blender/editors/mask/mask_ops.c3
2 files changed, 15 insertions, 10 deletions
diff --git a/source/blender/editors/mask/mask_draw.c b/source/blender/editors/mask/mask_draw.c
index fc9cfc85bc5..8c33db11d06 100644
--- a/source/blender/editors/mask/mask_draw.c
+++ b/source/blender/editors/mask/mask_draw.c
@@ -634,14 +634,17 @@ static float *mask_rasterize(Mask *mask, const int width, const int height)
/* sets up the opengl context.
* width, height are to match the values from ED_mask_get_size() */
-void ED_mask_draw_region(Mask *mask, ARegion *ar,
- const char draw_flag, const char draw_type, const char overlay_mode,
- const int width_i, const int height_i, /* convert directly into aspect corrected vars */
- const float aspx, const float aspy,
- const bool do_scale_applied, const bool do_draw_cb,
- float stabmat[4][4], /* optional - only used by clip */
- const bContext *C /* optional - only used when do_post_draw is set or called from clip editor */
- )
+void ED_mask_draw_region(
+ Mask *mask, ARegion *ar,
+ const char draw_flag, const char draw_type, const char overlay_mode,
+ /* convert directly into aspect corrected vars */
+ const int width_i, const int height_i,
+ const float aspx, const float aspy,
+ const bool do_scale_applied, const bool do_draw_cb,
+ /* optional - only used by clip */
+ float stabmat[4][4],
+ /* optional - only used when do_post_draw is set or called from clip editor */
+ const bContext *C)
{
struct View2D *v2d = &ar->v2d;
@@ -718,7 +721,8 @@ void ED_mask_draw_region(Mask *mask, ARegion *ar,
MEM_freeN(buffer);
}
- /* apply transformation so mask editing tools will assume drawing from the origin in normalized space */
+ /* apply transformation so mask editing tools will assume drawing from the
+ * origin in normalized space */
GPU_matrix_push();
GPU_matrix_translate_2f(x + xofs, y + yofs);
GPU_matrix_scale_2f(zoomx, zoomy);
diff --git a/source/blender/editors/mask/mask_ops.c b/source/blender/editors/mask/mask_ops.c
index 20fc403762d..9adf4c802a2 100644
--- a/source/blender/editors/mask/mask_ops.c
+++ b/source/blender/editors/mask/mask_ops.c
@@ -2220,7 +2220,8 @@ static int mask_duplicate_exec(bContext *C, wmOperator *UNUSED(op))
MaskSplinePoint *new_point;
int b;
- /* BKE_mask_spline_add might allocate the points, need to free them in this case. */
+ /* BKE_mask_spline_add might allocate the points,
+ * need to free them in this case. */
if (new_spline->points) {
MEM_freeN(new_spline->points);
}