Commit 93f3cda0 authored by frankie's avatar frankie 💬

fix on M_PI in gizmo modifier

parent 23702a60
*.o
*.obj
*.pyc
*.kdev4
.kdev4/*
......
......@@ -52,11 +52,6 @@
#include "futari_gizmo_modifiers.h"
#if defined(__WIN32__) || defined(WIN32) || defined(_WIN32)
// M_PI is not defined on windows... see <math.h> in linux
# define M_PI 3.14159265358979323846 /* pi */
#endif
// +++++++++++++++ MODIFIER +++++++++++++++
FutariModifierGizmoPlugin::FutariModifierGizmoPlugin() {
......
......@@ -83,6 +83,12 @@
#define FUTARI_FLOOR_MATERIAL "futari_floor"
#define FUTARI_HANDLE_MATERIAL "futari_handles"
#if defined(__WIN32__) || defined(WIN32) || defined(_WIN32)
// M_PI is not defined on windows... see <math.h> in linux
# define M_PI 3.14159265358979323846 /* pi */
#endif
class FutariModifierGizmoPlugin : public EditorSpatialGizmoPlugin {
GDCLASS( FutariModifierGizmoPlugin, EditorSpatialGizmoPlugin )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment