Browse Source

fixes #1907 - Compiler error when URHO3D_IK=OFF

TheComet 8 years ago
parent
commit
183d2d835e
2 changed files with 4 additions and 2 deletions
  1. 1 1
      Source/Urho3D/AngelScript/IKAPI.cpp
  2. 3 1
      Source/Urho3D/Core/Context.cpp

+ 1 - 1
Source/Urho3D/AngelScript/IKAPI.cpp

@@ -20,7 +20,7 @@
 // THE SOFTWARE.
 //
 
-#ifdef URHO3D_PHYSICS
+#ifdef URHO3D_IK
 
 #include "../Precompiled.h"
 

+ 3 - 1
Source/Urho3D/Core/Context.cpp

@@ -279,6 +279,7 @@ void Context::ReleaseSDL()
         URHO3D_LOGERROR("Too many calls to Context::ReleaseSDL()!");
 }
 
+#ifdef URHO3D_IK
 void Context::RequireIK()
 {
     // Always increment, the caller must match with ReleaseSDL(), regardless of
@@ -309,7 +310,8 @@ void Context::ReleaseIK()
     if (ikInitCounter < 0)
         URHO3D_LOGERROR("Too many calls to Context::ReleaseIK()");
 }
-#endif
+#endif // ifdef URHO3D_IK
+#endif // ifndef MINI_URHO
 
 void Context::CopyBaseAttributes(StringHash baseType, StringHash derivedType)
 {