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:
authorAntonioya <blendergit@gmail.com>2018-08-21 19:50:03 +0300
committerAntonioya <blendergit@gmail.com>2018-08-21 19:50:03 +0300
commit794836c8f17a2feaa43d31d23982fa41e3f953a4 (patch)
tree4a16b209928d6a1aabfc4028282caaabb23c69f5 /source/blender/editors/gpencil/gpencil_brush.c
parentdf6cd591f82c3f7812aebfe6e2ad4cec06343076 (diff)
GP: Recalc fill triangulation in sculpt mode
In some extreme modifications the fill triangulation cannot be right, so need a refresh. This is done only for sculpt brushes that can change the geometry.
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_brush.c')
-rw-r--r--source/blender/editors/gpencil/gpencil_brush.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/editors/gpencil/gpencil_brush.c b/source/blender/editors/gpencil/gpencil_brush.c
index d8be0dd665a..ddce148a3a3 100644
--- a/source/blender/editors/gpencil/gpencil_brush.c
+++ b/source/blender/editors/gpencil/gpencil_brush.c
@@ -313,6 +313,8 @@ static bool gp_brush_smooth_apply(
BKE_gpencil_smooth_stroke_uv(gps, pt_index, inf);
}
+ gps->flag |= GP_STROKE_RECALC_CACHES;
+
return true;
}
@@ -528,6 +530,7 @@ static void gp_brush_grab_apply_cached(
/* compute lock axis */
gpsculpt_compute_lock_axis(gso, pt, save_pt);
}
+ gps->flag |= GP_STROKE_RECALC_CACHES;
}
/* free customdata used for handling this stroke */
@@ -567,6 +570,8 @@ static bool gp_brush_push_apply(
/* compute lock axis */
gpsculpt_compute_lock_axis(gso, pt, save_pt);
+ gps->flag |= GP_STROKE_RECALC_CACHES;
+
/* done */
return true;
}
@@ -652,6 +657,8 @@ static bool gp_brush_pinch_apply(
/* compute lock axis */
gpsculpt_compute_lock_axis(gso, pt, save_pt);
+ gps->flag |= GP_STROKE_RECALC_CACHES;
+
/* done */
return true;
}
@@ -732,6 +739,8 @@ static bool gp_brush_twist_apply(
}
}
+ gps->flag |= GP_STROKE_RECALC_CACHES;
+
/* done */
return true;
}
@@ -854,6 +863,8 @@ static bool gp_brush_randomize_apply(
CLAMP(pt->uv_rot, -M_PI_2, M_PI_2);
}
+ gps->flag |= GP_STROKE_RECALC_CACHES;
+
/* done */
return true;
}