Commit: af6b88c629d52f1458cf3ecfb70427754229f956
Author: Antonio Vazquez
Date: Sat Mar 12 10:48:42 2022 +0100
Branches: blender-v3.1-release
https://developer.blender.org/rBaf6b88c629d52f1458cf3ecfb70427754229f956
GPencil: Fix unreported select error in Normalize operator
The curve selection was wrongly checked.
===================================================================
M source/blender/editors/gpencil/gpencil_edit.c
===================================================================
diff --git a/source/blender/editors/gpencil/gpencil_edit.c
b/source/blender/editors/gpencil/gpencil_edit.c
index 2ac7ec4f25c..a83c9f9a992 100644
--- a/source/blender/editors/gpencil/gpencil_edit.c
+++ b/source/blender/editors/gpencil/gpencil_edit.c
@@ -5447,7 +5447,7 @@ static int gpencil_stroke_normalize_exec(bContext *C,
wmOperator *op)
}
bool is_curve_ready = (gps->editcurve != NULL);
bool selected = (is_curve_edit && is_curve_ready) ?
- gps->editcurve->flag |= GP_CURVE_SELECT :
+ (gps->editcurve->flag & GP_CURVE_SELECT) :
(gps->flag & GP_STROKE_SELECT);
if (!selected) {
continue;
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs