[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [39018] trunk/blender/source/blender/ makesrna/intern/rna_object_api.c: fix for building with clang.

Campbell Barton ideasman42 at gmail.com
Thu Aug 4 15:22:39 CEST 2011


Revision: 39018
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=39018
Author:   campbellbarton
Date:     2011-08-04 13:22:38 +0000 (Thu, 04 Aug 2011)
Log Message:
-----------
fix for building with clang. makesrna wasnt linking with sqrt

Modified Paths:
--------------
    trunk/blender/source/blender/makesrna/intern/rna_object_api.c

Modified: trunk/blender/source/blender/makesrna/intern/rna_object_api.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_object_api.c	2011-08-04 12:19:50 UTC (rev 39017)
+++ trunk/blender/source/blender/makesrna/intern/rna_object_api.c	2011-08-04 13:22:38 UTC (rev 39018)
@@ -45,9 +45,9 @@
 
 // #include "ED_mesh.h"
 
-#include "BLI_math.h"
 
 #ifdef RNA_RUNTIME
+#include "BLI_math.h"
 
 #include "BKE_main.h"
 #include "BKE_global.h"
@@ -544,7 +544,8 @@
 	/* location of point for test and max distance */
 	parm= RNA_def_float_vector(func, "point", 3, NULL, -FLT_MAX, FLT_MAX, "", "", -1e4, 1e4);
 	RNA_def_property_flag(parm, PROP_REQUIRED);
-	RNA_def_float(func, "max_dist", sqrt(FLT_MAX), 0.0, FLT_MAX, "", "", 0.0, FLT_MAX);
+	/* default is sqrt(FLT_MAX) */
+	RNA_def_float(func, "max_dist", 1.844674352395373e+19, 0.0, FLT_MAX, "", "", 0.0, FLT_MAX);
 
 	/* return location and normal */
 	parm= RNA_def_float_vector(func, "location", 3, NULL, -FLT_MAX, FLT_MAX, "Location", "The location on the object closest to the point", -1e4, 1e4);




More information about the Bf-blender-cvs mailing list