rename and negate DISABLE_PYTHON --> WITH_PYTHON

This commit is contained in:
Campbell Barton
2010-10-31 04:11:39 +00:00
parent 50dab4fc37
commit 0876fce009
217 changed files with 477 additions and 505 deletions

View File

@@ -153,7 +153,7 @@ void BL_ConvertControllers(
bPythonCont* pycont = (bPythonCont*) bcontr->data;
SCA_PythonController* pyctrl = new SCA_PythonController(gameobj, pycont->mode);
gamecontroller = pyctrl;
#ifndef DISABLE_PYTHON
#ifdef WITH_PYTHON
pyctrl->SetNamespace(converter->GetPyNamespace());
@@ -183,7 +183,7 @@ void BL_ConvertControllers(
}
}
#endif // DISABLE_PYTHON
#endif // WITH_PYTHON
break;
}
@@ -210,7 +210,7 @@ void BL_ConvertControllers(
converter->RegisterGameController(gamecontroller, bcontr);
#ifndef DISABLE_PYTHON
#ifdef WITH_PYTHON
if (bcontr->type==CONT_PYTHON) {
SCA_PythonController *pyctrl= static_cast<SCA_PythonController*>(gamecontroller);
/* not strictly needed but gives syntax errors early on and
@@ -225,7 +225,7 @@ void BL_ConvertControllers(
// pyctrl->Import();
}
}
#endif // DISABLE_PYTHON
#endif // WITH_PYTHON
//done with gamecontroller
gamecontroller->Release();