diff options
Diffstat (limited to 'source/blender/editors/curve/editcurve_paint.c')
-rw-r--r-- | source/blender/editors/curve/editcurve_paint.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/editors/curve/editcurve_paint.c b/source/blender/editors/curve/editcurve_paint.c index c2c85e20174..cf7cfec5130 100644 --- a/source/blender/editors/curve/editcurve_paint.c +++ b/source/blender/editors/curve/editcurve_paint.c @@ -475,7 +475,6 @@ static void curve_draw_stroke_3d(const struct bContext *UNUSED(C), ARegion *UNUS Batch_Uniform3fv(sphere, "color", color); /* scale to edit-mode space */ - gpuMatrixBegin3D_legacy(); gpuPushMatrix(); gpuMultMatrix3D(obedit->obmat); @@ -489,15 +488,15 @@ static void curve_draw_stroke_3d(const struct bContext *UNUSED(C), ARegion *UNUS const float radius = stroke_elem_radius(cdd, selem); + gpuPushMatrix(); gpuScaleUniform(radius); Batch_draw(sphere); - gpuScaleUniform(1.0f / radius); + gpuPopMatrix(); location_prev = selem->location_local; } gpuPopMatrix(); - gpuMatrixEnd(); } if (stroke_len > 1) { |