[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [32648] trunk/blender/source/blender/ blenlib: Add some missing const's
Nathan Letwory
nathan at letworyinteractive.com
Fri Oct 22 12:17:55 CEST 2010
Revision: 32648
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=32648
Author: jesterking
Date: 2010-10-22 12:17:55 +0200 (Fri, 22 Oct 2010)
Log Message:
-----------
Add some missing const's
Modified Paths:
--------------
trunk/blender/source/blender/blenlib/BLI_math_base.h
trunk/blender/source/blender/blenlib/BLI_math_matrix.h
trunk/blender/source/blender/blenlib/BLI_math_vector.h
trunk/blender/source/blender/blenlib/intern/math_rotation.c
Modified: trunk/blender/source/blender/blenlib/BLI_math_base.h
===================================================================
--- trunk/blender/source/blender/blenlib/BLI_math_base.h 2010-10-22 06:25:14 UTC (rev 32647)
+++ trunk/blender/source/blender/blenlib/BLI_math_base.h 2010-10-22 10:17:55 UTC (rev 32648)
@@ -128,6 +128,7 @@
#ifndef FREE_WINDOWS
#define isnan(n) _isnan(n)
#define finite _finite
+#define hypot _hypot
#endif
#endif
Modified: trunk/blender/source/blender/blenlib/BLI_math_matrix.h
===================================================================
--- trunk/blender/source/blender/blenlib/BLI_math_matrix.h 2010-10-22 06:25:14 UTC (rev 32647)
+++ trunk/blender/source/blender/blenlib/BLI_math_matrix.h 2010-10-22 10:17:55 UTC (rev 32648)
@@ -142,7 +142,7 @@
void mat4_to_size(float r[3], float M[4][4]);
void translate_m4(float mat[4][4], float tx, float ty, float tz);
-void rotate_m4(float mat[4][4], char axis, float angle);
+void rotate_m4(float mat[4][4], const char axis, const float angle);
void loc_eul_size_to_mat4(float R[4][4],
const float loc[3], const float eul[3], const float size[3]);
Modified: trunk/blender/source/blender/blenlib/BLI_math_vector.h
===================================================================
--- trunk/blender/source/blender/blenlib/BLI_math_vector.h 2010-10-22 06:25:14 UTC (rev 32647)
+++ trunk/blender/source/blender/blenlib/BLI_math_vector.h 2010-10-22 10:17:55 UTC (rev 32648)
@@ -168,8 +168,8 @@
/***************************** Array Functions *******************************/
/* attempted to follow fixed length vertex functions. names could be improved*/
void range_vni(int *array, const int size, const int start);
-void mul_vn_fl(float *array, int size, const float f);
-void mul_vn_vn_fl(float *array_tar, const float *array_src, int size, const float f);
+void mul_vn_fl(float *array, const int size, const float f);
+void mul_vn_vn_fl(float *array_tar, const float *array_src, const int size, const float f);
void add_vn_vn(float *array_tar, const float *array_src, const int size);
void fill_vni(int *array_tar, const int size, const int val);
Modified: trunk/blender/source/blender/blenlib/intern/math_rotation.c
===================================================================
--- trunk/blender/source/blender/blenlib/intern/math_rotation.c 2010-10-22 06:25:14 UTC (rev 32647)
+++ trunk/blender/source/blender/blenlib/intern/math_rotation.c 2010-10-22 10:17:55 UTC (rev 32648)
@@ -624,7 +624,7 @@
}
/* Axis Angle to Euler Rotation */
-void axis_angle_to_eulO(float eul[3], short order, const float axis[3], const float angle)
+void axis_angle_to_eulO(float eul[3], const short order, const float axis[3], const float angle)
{
float q[4];
@@ -1175,7 +1175,7 @@
}
/* Convert 4x4 matrix to Euler angles (in radians). */
-void mat4_to_eulO(float e[3], short order,float M[4][4])
+void mat4_to_eulO(float e[3], const short order,float M[4][4])
{
float m[3][3];
More information about the Bf-blender-cvs
mailing list