rename and negate DISABLE_PYTHON --> WITH_PYTHON
[blender.git] / source / blender / windowmanager / intern / wm.c
index 5c4912d7aeeafc03acb71c4359424a17852bc029..426069245c30b4acbfb22470b6c50e08ea7daa80 100644 (file)
@@ -58,7 +58,7 @@
 
 #include "ED_screen.h"
 
-#ifndef DISABLE_PYTHON
+#ifdef WITH_PYTHON
 #include "BPY_extern.h"
 #endif
 
@@ -69,7 +69,7 @@
 void WM_operator_free(wmOperator *op)
 {
 
-#ifndef DISABLE_PYTHON
+#ifdef WITH_PYTHON
        if(op->py_instance) {
                /* do this first incase there are any __del__ functions or
                 * similar that use properties */