[Bf-blender-cvs] [03d57e126ba] soc-2018-hair-shader: Remove unnecessary cast to float

L. E. Segovia noreply at git.blender.org
Wed Jun 6 18:58:33 CEST 2018


Commit: 03d57e126ba9316a9c8bd60c5edaa7a5c87296d8
Author: L. E. Segovia
Date:   Wed Jun 6 16:25:23 2018 +0000
Branches: soc-2018-hair-shader
https://developer.blender.org/rB03d57e126ba9316a9c8bd60c5edaa7a5c87296d8

Remove unnecessary cast to float

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

M	intern/cycles/render/nodes.cpp

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

diff --git a/intern/cycles/render/nodes.cpp b/intern/cycles/render/nodes.cpp
index 5e652310c32..c47a6b96df8 100644
--- a/intern/cycles/render/nodes.cpp
+++ b/intern/cycles/render/nodes.cpp
@@ -3058,7 +3058,7 @@ NODE_DEFINE(PrincipledHairBsdfNode)
 	parametrization_enum.insert("Melanin concentration", NODE_PRINCIPLED_HAIR_PIGMENT_CONCENTRATION);
 	SOCKET_ENUM(parametrization, "Parametrization", parametrization_enum, NODE_PRINCIPLED_HAIR_REFLECTANCE);
 
-	SOCKET_IN_FLOAT(offset, "Offset", 2.f*((float)M_PI)/180.f);
+	SOCKET_IN_FLOAT(offset, "Offset", 2.f*M_PI_F/180.f);
 	SOCKET_IN_FLOAT(roughness_u, "RoughnessU", 0.3f);
 	SOCKET_IN_FLOAT(roughness_v, "RoughnessV", 0.3f);
 	SOCKET_IN_FLOAT(roughness_randomization, "Roughness Randomization", 0.0f);



More information about the Bf-blender-cvs mailing list