rename and negate DISABLE_PYTHON --> WITH_PYTHON
[blender.git] / source / gameengine / Ketsji / KX_Scene.cpp
index 3753f3d6bd67a109700faeed677adcdb1a88bc3a..c48112dbcb73a13913c7ba131aebc961921419ee 100644 (file)
@@ -208,7 +208,7 @@ KX_Scene::KX_Scene(class SCA_IInputDevice* keyboarddevice,
 
        m_bucketmanager=new RAS_BucketManager();
        
-#ifndef DISABLE_PYTHON
+#ifdef WITH_PYTHON
        m_attr_dict = PyDict_New(); /* new ref */
        m_draw_call_pre = NULL;
        m_draw_call_post = NULL;
@@ -262,7 +262,7 @@ KX_Scene::~KX_Scene()
                delete m_bucketmanager;
        }
 
-#ifndef DISABLE_PYTHON
+#ifdef WITH_PYTHON
        PyDict_Clear(m_attr_dict);
        Py_DECREF(m_attr_dict);
 
@@ -1839,7 +1839,7 @@ void KX_Scene::Render2DFilters(RAS_ICanvas* canvas)
        m_filtermanager.RenderFilters(canvas);
 }
 
-#ifndef DISABLE_PYTHON
+#ifdef WITH_PYTHON
 
 void KX_Scene::RunDrawingCallbacks(PyObject* cb_list)
 {
@@ -2249,4 +2249,4 @@ KX_PYMETHODDEF_DOC(KX_Scene, get, "")
        return def;
 }
 
-#endif // DISABLE_PYTHON
+#endif // WITH_PYTHON