[Bf-blender-cvs] [99a386d] master: Code cleanup: Prevent possible int->float conversion

Sergey Sharybin noreply at git.blender.org
Mon Oct 13 17:52:33 CEST 2014


Commit: 99a386da9ecc2cd3bdf2f1149e1a7de578190c56
Author: Sergey Sharybin
Date:   Mon Oct 13 17:52:14 2014 +0200
Branches: master
https://developer.blender.org/rB99a386da9ecc2cd3bdf2f1149e1a7de578190c56

Code cleanup: Prevent possible int->float conversion

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

M	source/blender/editors/mask/mask_ops.c

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

diff --git a/source/blender/editors/mask/mask_ops.c b/source/blender/editors/mask/mask_ops.c
index 704be32..d322ca9 100644
--- a/source/blender/editors/mask/mask_ops.c
+++ b/source/blender/editors/mask/mask_ops.c
@@ -1167,7 +1167,7 @@ static bool slide_spline_curvature_check(bContext *C, const wmEvent *event)
 {
 	Mask *mask = CTX_data_edit_mask(C);
 	float co[2];
-	const float threshold = 19;
+	const float threshold = 19.0f;
 
 	ED_mask_mouse_pos(CTX_wm_area(C), CTX_wm_region(C), event->mval, co);




More information about the Bf-blender-cvs mailing list