[Bf-blender-cvs] [c8fa716c060] master: Cycles: Use float constants instead of double

Mai Lavelle noreply at git.blender.org
Fri Jun 30 05:11:10 CEST 2017


Commit: c8fa716c0603d922d816e1fbc59b0291ced8f94f
Author: Mai Lavelle
Date:   Thu Jun 29 22:52:31 2017 -0400
Branches: master
https://developer.blender.org/rBc8fa716c0603d922d816e1fbc59b0291ced8f94f

Cycles: Use float constants instead of double

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

M	intern/cycles/util/util_math_float3.h

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

diff --git a/intern/cycles/util/util_math_float3.h b/intern/cycles/util/util_math_float3.h
index 5327d9f7cc6..bb04c4aa2d9 100644
--- a/intern/cycles/util/util_math_float3.h
+++ b/intern/cycles/util/util_math_float3.h
@@ -374,9 +374,9 @@ ccl_device_inline bool isfinite3_safe(float3 v)
 
 ccl_device_inline float3 ensure_finite3(float3 v)
 {
-	if(!isfinite_safe(v.x)) v.x = 0.0;
-	if(!isfinite_safe(v.y)) v.y = 0.0;
-	if(!isfinite_safe(v.z)) v.z = 0.0;
+	if(!isfinite_safe(v.x)) v.x = 0.0f;
+	if(!isfinite_safe(v.y)) v.y = 0.0f;
+	if(!isfinite_safe(v.z)) v.z = 0.0f;
 	return v;
 }




More information about the Bf-blender-cvs mailing list