[Bf-blender-cvs] [a5242d08fbe] blender2.8: cleanup floating point literals

Mike Erwin noreply at git.blender.org
Wed Jun 7 22:29:02 CEST 2017


Commit: a5242d08fbe4105dd18e1adbe65d4f17f83fa68f
Author: Mike Erwin
Date:   Thu Jun 1 14:43:45 2017 -0400
Branches: blender2.8
https://developer.blender.org/rBa5242d08fbe4105dd18e1adbe65d4f17f83fa68f

cleanup floating point literals

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

M	source/blender/windowmanager/manipulators/intern/manipulator_library/arrow_manipulator.c

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

diff --git a/source/blender/windowmanager/manipulators/intern/manipulator_library/arrow_manipulator.c b/source/blender/windowmanager/manipulators/intern/manipulator_library/arrow_manipulator.c
index 0487903163a..95bd0bd1a45 100644
--- a/source/blender/windowmanager/manipulators/intern/manipulator_library/arrow_manipulator.c
+++ b/source/blender/windowmanager/manipulators/intern/manipulator_library/arrow_manipulator.c
@@ -110,10 +110,10 @@ static void arrow_draw_geom(const ArrowManipulator3D *arrow, const bool select,
 		immUniformColor4fv(color);
 
 		immBegin(PRIM_LINES, 4);
-		immVertex3f(pos, -1.0, 0.f, 0.0);
-		immVertex3f(pos, 1.0, 0.f, 0.0);
-		immVertex3f(pos, 0.f, -1.0, 0.0);
-		immVertex3f(pos, 0.f, 1.0, 0.0);
+		immVertex3f(pos, -1.0f,  0.0f, 0.0f);
+		immVertex3f(pos,  1.0f,  0.0f, 0.0f);
+		immVertex3f(pos,  0.0f, -1.0f, 0.0f);
+		immVertex3f(pos,  0.0f,  1.0f, 0.0f);
 		immEnd();
 	}
 	else if (arrow->style & MANIPULATOR_ARROW_STYLE_CONE) {




More information about the Bf-blender-cvs mailing list