diff options
Diffstat (limited to 'source/gameengine/Ketsji/KX_PyMath.cpp')
-rw-r--r-- | source/gameengine/Ketsji/KX_PyMath.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source/gameengine/Ketsji/KX_PyMath.cpp b/source/gameengine/Ketsji/KX_PyMath.cpp index 804e8de2ad1..bc324c3b140 100644 --- a/source/gameengine/Ketsji/KX_PyMath.cpp +++ b/source/gameengine/Ketsji/KX_PyMath.cpp @@ -31,9 +31,9 @@ */ -#ifdef _MSC_VER -# pragma warning (disable:4786) -#endif +#if defined(WIN32) && !defined(FREE_WINDOWS) +#pragma warning (disable : 4786) +#endif //WIN32 #ifdef WITH_PYTHON @@ -86,11 +86,11 @@ bool PyQuatTo(PyObject *pyval, MT_Quaternion &qrot) return false; /* annoying!, Blender/Mathutils have the W axis first! */ - MT_Scalar w = qrot[0]; /* from python, this is actually the W */ - qrot[0] = qrot[1]; - qrot[1] = qrot[2]; - qrot[2] = qrot[3]; - qrot[3] = w; + MT_Scalar w= qrot[0]; /* from python, this is actually the W */ + qrot[0]= qrot[1]; + qrot[1]= qrot[2]; + qrot[2]= qrot[3]; + qrot[3]= w; return true; } |