Cleanup: rename BPy_GetContext -> BPY_context_get
Matching BPY_context_set.
This commit is contained in:
@@ -84,7 +84,7 @@ static PyObject *pyop_poll(PyObject *UNUSED(self), PyObject *args)
|
||||
|
||||
/* XXX Todo, work out a better solution for passing on context,
|
||||
* could make a tuple from self and pack the name and Context into it... */
|
||||
bContext *C = (bContext *)BPy_GetContext();
|
||||
bContext *C = BPY_context_get();
|
||||
|
||||
if (C == NULL) {
|
||||
PyErr_SetString(PyExc_RuntimeError, "Context is None, cant poll any operators");
|
||||
@@ -171,7 +171,7 @@ static PyObject *pyop_call(PyObject *UNUSED(self), PyObject *args)
|
||||
|
||||
/* XXX Todo, work out a better solution for passing on context,
|
||||
* could make a tuple from self and pack the name and Context into it... */
|
||||
bContext *C = (bContext *)BPy_GetContext();
|
||||
bContext *C = BPY_context_get();
|
||||
|
||||
if (C == NULL) {
|
||||
PyErr_SetString(PyExc_RuntimeError, "Context is None, cant poll any operators");
|
||||
@@ -359,7 +359,7 @@ static PyObject *pyop_as_string(PyObject *UNUSED(self), PyObject *args)
|
||||
char *buf = NULL;
|
||||
PyObject *pybuf;
|
||||
|
||||
bContext *C = (bContext *)BPy_GetContext();
|
||||
bContext *C = BPY_context_get();
|
||||
|
||||
if (C == NULL) {
|
||||
PyErr_SetString(PyExc_RuntimeError,
|
||||
|
Reference in New Issue
Block a user