[Bf-blender-cvs] [19413c4a822] blender-v2.83-release: Cleanup: GPencil: Fix float double promotion

Clément Foucault noreply at git.blender.org
Mon May 18 16:01:11 CEST 2020


Commit: 19413c4a822eb3d553c1b15ead48fee629d4b7c7
Author: Clément Foucault
Date:   Mon May 18 15:50:28 2020 +0200
Branches: blender-v2.83-release
https://developer.blender.org/rB19413c4a822eb3d553c1b15ead48fee629d4b7c7

Cleanup: GPencil: Fix float double promotion

===================================================================

M	source/blender/draw/intern/draw_cache_impl_gpencil.c

===================================================================

diff --git a/source/blender/draw/intern/draw_cache_impl_gpencil.c b/source/blender/draw/intern/draw_cache_impl_gpencil.c
index 547a9a54b55..eb27a02a30f 100644
--- a/source/blender/draw/intern/draw_cache_impl_gpencil.c
+++ b/source/blender/draw/intern/draw_cache_impl_gpencil.c
@@ -291,7 +291,7 @@ static void gpencil_buffer_add_point(gpStrokeVert *verts,
   vert->u_stroke = pt->uv_fac;
   vert->stroke_id = gps->runtime.stroke_start;
   vert->point_id = v;
-  vert->thickness = max_ff(0.0f, gps->thickness * pt->pressure) * (round_cap1 ? 1.0 : -1.0);
+  vert->thickness = max_ff(0.0f, gps->thickness * pt->pressure) * (round_cap1 ? 1.0f : -1.0f);
   /* Tag endpoint material to -1 so they get discarded by vertex shader. */
   vert->mat = (is_endpoint) ? -1 : (gps->mat_nr % GP_MATERIAL_BUFFER_LEN);



More information about the Bf-blender-cvs mailing list