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:
Diffstat (limited to 'source/blender/editors/transform/transform_mode_gpshrinkfatten.c')
-rw-r--r--source/blender/editors/transform/transform_mode_gpshrinkfatten.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/editors/transform/transform_mode_gpshrinkfatten.c b/source/blender/editors/transform/transform_mode_gpshrinkfatten.c
index 608a49f38b1..897655ee674 100644
--- a/source/blender/editors/transform/transform_mode_gpshrinkfatten.c
+++ b/source/blender/editors/transform/transform_mode_gpshrinkfatten.c
@@ -73,18 +73,18 @@ static void applyGPShrinkFatten(TransInfo *t, const int UNUSED(mval[2]))
bool recalc = false;
FOREACH_TRANS_DATA_CONTAINER (t, tc) {
TransData *td = tc->data;
- bGPdata *gpd = td->ob->data;
- const bool is_curve_edit = (bool)GPENCIL_CURVE_EDIT_SESSIONS_ON(gpd);
- /* Only recalculate data when in curve edit mode. */
- if (is_curve_edit) {
- recalc = true;
- }
for (i = 0; i < tc->data_len; i++, td++) {
if (td->flag & TD_SKIP) {
continue;
}
+ /* Only recalculate data for bezier strokes. */
+ bGPDstroke *gps = td->extra;
+ if (GPENCIL_STROKE_TYPE_BEZIER(gps)) {
+ recalc = true;
+ }
+
if (td->val) {
*td->val = td->ival * ratio;
/* apply PET */