compile scripts when converting controllers to give more predictable performance and print syntax errors early on rather then when the script is first executed.

This commit is contained in:
Campbell Barton
2009-02-24 03:29:31 +00:00
parent 334da0fa57
commit 394d893e13
3 changed files with 51 additions and 26 deletions

View File

@@ -70,6 +70,7 @@ class SCA_PythonController : public SCA_IController
void AddTriggeredSensor(class SCA_ISensor* sensor)
{ m_triggeredSensors.push_back(sensor); }
int IsTriggered(class SCA_ISensor* sensor);
bool Compile();
static const char* sPyGetCurrentController__doc__;
static PyObject* sPyGetCurrentController(PyObject* self);