rename and negate DISABLE_PYTHON --> WITH_PYTHON
[blender.git] / source / gameengine / GameLogic / SCA_PythonController.h
index bd78014038c3c524af17a01c5696cce580f0be0f..602b5e27e47538afa5f6f192f677f7ccb359eaa7 100644 (file)
@@ -42,7 +42,7 @@ class SCA_IObject;
 class SCA_PythonController : public SCA_IController
 {
        Py_Header;
-#ifndef DISABLE_PYTHON
+#ifdef WITH_PYTHON
        struct _object *                m_bytecode; /* SCA_PYEXEC_SCRIPT only */
        PyObject*                               m_function; /* SCA_PYEXEC_MODULE only */
 #endif
@@ -55,7 +55,7 @@ class SCA_PythonController : public SCA_IController
  protected:
        STR_String                              m_scriptText;
        STR_String                              m_scriptName;
-#ifndef DISABLE_PYTHON
+#ifdef WITH_PYTHON
        PyObject*                               m_pythondictionary;     /* for SCA_PYEXEC_SCRIPT only */
        PyObject*                               m_pythonfunction;       /* for SCA_PYEXEC_MODULE only */
 #endif
@@ -83,7 +83,7 @@ class SCA_PythonController : public SCA_IController
   
        void    SetScriptText(const STR_String& text);
        void    SetScriptName(const STR_String& name);
-#ifndef DISABLE_PYTHON
+#ifdef WITH_PYTHON
        void    SetNamespace(PyObject*  pythondictionary);
 #endif
        void    SetDebug(bool debug) { m_debug = debug; }
@@ -94,7 +94,7 @@ class SCA_PythonController : public SCA_IController
        bool    Import();
        void    ErrorPrint(const char *error_msg);
        
-#ifndef DISABLE_PYTHON
+#ifdef WITH_PYTHON
        static const char* sPyGetCurrentController__doc__;
        static PyObject* sPyGetCurrentController(PyObject* self);
        static const char* sPyAddActiveActuator__doc__;