Fix incorrect FLT_MIN use
This commit is contained in:
parent
67d2de8828
commit
d57f416e47
@ -4000,7 +4000,7 @@ void DM_init_origspace(DerivedMesh *dm)
|
||||
float p_nor[3], co[3];
|
||||
float mat[3][3];
|
||||
|
||||
float min[2] = {FLT_MAX, FLT_MAX}, max[2] = {FLT_MIN, FLT_MIN};
|
||||
float min[2] = {FLT_MAX, FLT_MAX}, max[2] = {-FLT_MAX, -FLT_MAX};
|
||||
float translate[2], scale[2];
|
||||
|
||||
BKE_mesh_calc_poly_normal(mp, l, mv, p_nor);
|
||||
|
@ -1777,8 +1777,8 @@ static void rna_def_trackingReconstructedCameras(BlenderRNA *brna)
|
||||
RNA_def_function_flag(func, FUNC_USE_SELF_ID);
|
||||
RNA_def_function_ui_description(func, "Return interpolated camera matrix for a given frame");
|
||||
RNA_def_int(func, "frame", 1, MINFRAME, MAXFRAME, "Frame", "Frame number to find camera for", MINFRAME, MAXFRAME);
|
||||
parm = RNA_def_float_matrix(func, "matrix", 4, 4, NULL, FLT_MIN, FLT_MAX, "Matrix",
|
||||
"Interpolated camera matrix for a given frame", FLT_MIN, FLT_MAX);
|
||||
parm = RNA_def_float_matrix(func, "matrix", 4, 4, NULL, -FLT_MAX, FLT_MAX, "Matrix",
|
||||
"Interpolated camera matrix for a given frame", -FLT_MAX, FLT_MAX);
|
||||
RNA_def_property_flag(parm, PROP_THICK_WRAP); /* needed for string return value */
|
||||
RNA_def_function_output(func, parm);
|
||||
}
|
||||
|
@ -27,7 +27,7 @@
|
||||
*/
|
||||
|
||||
#include <Python.h>
|
||||
#include <float.h> /* FLT_MIN/MAX */
|
||||
#include <float.h> /* FLT_MAX */
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user