[Bf-blender-cvs] [9d3a55b6883] temp-gpencil-bezier-stroke-type: GPencil: fix ED_transform_calc_gizmo_stats
Falk David
noreply at git.blender.org
Tue Mar 16 10:36:05 CET 2021
Commit: 9d3a55b6883f37163f1e8e66e9801c3126c75c8d
Author: Falk David
Date: Mon Mar 15 14:30:09 2021 +0100
Branches: temp-gpencil-bezier-stroke-type
https://developer.blender.org/rB9d3a55b6883f37163f1e8e66e9801c3126c75c8d
GPencil: fix ED_transform_calc_gizmo_stats
This used the old curve edit mode check before. Now it's fixed.
===================================================================
M source/blender/editors/transform/transform_gizmo_3d.c
===================================================================
diff --git a/source/blender/editors/transform/transform_gizmo_3d.c b/source/blender/editors/transform/transform_gizmo_3d.c
index 27df29afd8d..30c3f07fa2e 100644
--- a/source/blender/editors/transform/transform_gizmo_3d.c
+++ b/source/blender/editors/transform/transform_gizmo_3d.c
@@ -653,7 +653,6 @@ int ED_transform_calc_gizmo_stats(const bContext *C,
Object *ob = OBACT(view_layer);
bGPdata *gpd = CTX_data_gpencil_data(C);
const bool is_gp_edit = GPENCIL_ANY_MODE(gpd);
- const bool is_curve_edit = GPENCIL_CURVE_EDIT_SESSIONS_ON(gpd);
int a, totsel = 0;
const int pivot_point = scene->toolsettings->transform_pivot_point;
@@ -712,11 +711,7 @@ int ED_transform_calc_gizmo_stats(const bContext *C,
continue;
}
- if (is_curve_edit) {
- if (gps->editcurve == NULL) {
- continue;
- }
-
+ if (GPENCIL_STROKE_TYPE_BEZIER(gps)) {
bGPDcurve *gpc = gps->editcurve;
if (gpc->flag & GP_CURVE_SELECT) {
for (uint32_t i = 0; i < gpc->tot_curve_points; i++) {
More information about the Bf-blender-cvs
mailing list