fix for warnings/errors in recent commits
This commit is contained in:
@@ -91,7 +91,7 @@ void UnitConverter::mat4_to_dae(float out[4][4], float const in[4][4])
|
||||
transpose_m4(out);
|
||||
}
|
||||
|
||||
void UnitConverter::mat4_to_dae_double(double out[4][4], float in[4][4])
|
||||
void UnitConverter::mat4_to_dae_double(double out[4][4], float const in[4][4])
|
||||
{
|
||||
float mat[4][4];
|
||||
|
||||
|
@@ -71,9 +71,9 @@ public:
|
||||
|
||||
void dae_matrix_to_mat4_(float out[4][4], const COLLADABU::Math::Matrix4& in);
|
||||
|
||||
void mat4_to_dae(float out[4][4], float in[4][4]);
|
||||
void mat4_to_dae(float out[4][4], float const in[4][4]);
|
||||
|
||||
void mat4_to_dae_double(double out[4][4], float in[4][4]);
|
||||
void mat4_to_dae_double(double out[4][4], float const in[4][4]);
|
||||
};
|
||||
|
||||
class TransformBase
|
||||
|
@@ -3992,7 +3992,7 @@ float ED_view3d_offset_distance(float mat[4][4], float ofs[3])
|
||||
|
||||
/* problem - ofs[3] can be on same location as camera itself.
|
||||
Blender needs proper dist value for zoom */
|
||||
if ( fabs(dist) <= FLT_EPSILON) {
|
||||
if (fabsf(dist) <= FLT_EPSILON) {
|
||||
return 1.0f;
|
||||
}
|
||||
return dist;
|
||||
|
Reference in New Issue
Block a user