Commit: 2af99b7437b9b590fbf81d28dc2c3f68b62f942d
Author: Bastien Montagne
Date:   Wed Jul 9 15:10:59 2014 +0200
https://developer.blender.org/rB2af99b7437b9b590fbf81d28dc2c3f68b62f942d

Cleanup: silent C++11 warning (implicit double to float conversion) in Collada 
code.

===================================================================

M       source/blender/collada/ControllerExporter.cpp

===================================================================

diff --git a/source/blender/collada/ControllerExporter.cpp 
b/source/blender/collada/ControllerExporter.cpp
index c544382..e34161f 100644
--- a/source/blender/collada/ControllerExporter.cpp
+++ b/source/blender/collada/ControllerExporter.cpp
@@ -522,8 +522,6 @@ static float get_property(Bone *bone, const char *key, 
float def)
  */
 static void create_restpose_mat(Bone *bone, float mat[4][4])
 {
-       const double PI = 3.1415926535897932384626433832795;
-
        float loc[3] = {
                get_property(bone, "restpose_loc_x", 0.0),
                get_property(bone, "restpose_loc_y", 0.0),
@@ -531,9 +529,9 @@ static void create_restpose_mat(Bone *bone, float mat[4][4])
        };
 
        float rot[3] = {
-               PI * get_property(bone, "restpose_rot_x", 0.0) / 180.0,
-               PI * get_property(bone, "restpose_rot_y", 0.0) / 180.0,
-               PI * get_property(bone, "restpose_rot_z", 0.0) / 180.0
+               DEG2RADF(get_property(bone, "restpose_rot_x", 0.0)),
+               DEG2RADF(get_property(bone, "restpose_rot_y", 0.0)),
+               DEG2RADF(get_property(bone, "restpose_rot_z", 0.0))
        };
 
        float scale[3] = {

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to