Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-12-11 19:06:51 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-12-11 19:06:51 +0400
commit3520dd56e3894d2b5c825dc98cdd5d846b6756c0 (patch)
tree9cca761e6608ae29620ac39b773bd9da2479f904 /source/blender
parentcb116b42f46fc11c60d1976c190eb1d9570da48a (diff)
fix for warnings/errors in recent commits
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/collada/collada_internal.cpp2
-rw-r--r--source/blender/collada/collada_internal.h4
-rw-r--r--source/blender/editors/space_view3d/view3d_edit.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/collada/collada_internal.cpp b/source/blender/collada/collada_internal.cpp
index 0c95cd6a31a..13ff69d3abf 100644
--- a/source/blender/collada/collada_internal.cpp
+++ b/source/blender/collada/collada_internal.cpp
@@ -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];
diff --git a/source/blender/collada/collada_internal.h b/source/blender/collada/collada_internal.h
index d92f53f714c..5a5126025de 100644
--- a/source/blender/collada/collada_internal.h
+++ b/source/blender/collada/collada_internal.h
@@ -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
diff --git a/source/blender/editors/space_view3d/view3d_edit.c b/source/blender/editors/space_view3d/view3d_edit.c
index 231a8d3dcf2..d0783419fe8 100644
--- a/source/blender/editors/space_view3d/view3d_edit.c
+++ b/source/blender/editors/space_view3d/view3d_edit.c
@@ -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;