[Bf-blender-cvs] [1aa7c4c28a0] master: GPencil: Cleanup float indicator

Antonio Vazquez noreply at git.blender.org
Tue Mar 10 08:58:57 CET 2020


Commit: 1aa7c4c28a068e15245f1323a8cff53694a3b163
Author: Antonio Vazquez
Date:   Tue Mar 10 08:58:25 2020 +0100
Branches: master
https://developer.blender.org/rB1aa7c4c28a068e15245f1323a8cff53694a3b163

GPencil: Cleanup float indicator

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

M	source/blender/draw/engines/gpencil/shaders/gpencil_common_lib.glsl

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

diff --git a/source/blender/draw/engines/gpencil/shaders/gpencil_common_lib.glsl b/source/blender/draw/engines/gpencil/shaders/gpencil_common_lib.glsl
index b8b60a8f0c9..cba5a1f80af 100644
--- a/source/blender/draw/engines/gpencil/shaders/gpencil_common_lib.glsl
+++ b/source/blender/draw/engines/gpencil/shaders/gpencil_common_lib.glsl
@@ -551,13 +551,13 @@ void fill_vertex()
   /* Decode fill opacity. */
   vec4 fcol_decode = vec4(fcol1.rgb, floor(fcol1.a / 10.0));
   float fill_opacity = fcol1.a - (fcol_decode.a * 10);
-  fcol_decode.a /= 10000.0f;
+  fcol_decode.a /= 10000.0;
 
   /* Apply opacity. */
   fill_col.a *= fill_opacity;
   /* If factor is > 1 force opacity. */
   if (fill_opacity > 1.0) {
-    fill_col.a += fill_opacity - 1.0f;
+    fill_col.a += fill_opacity - 1.0;
   }
 
   fill_col.a = clamp(fill_col.a, 0.0, 1.0);



More information about the Bf-blender-cvs mailing list