diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-02-14 07:15:25 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-02-14 07:15:25 +0300 |
commit | 72bc3f22b7d01349eaa82b58f8b03a1a26b738ba (patch) | |
tree | 2ad1f687b487dea019aa0cb4e9cf885e6df06cd1 /source/blender/python/intern/bpy_operator.c | |
parent | 54190dd8e5562cf5f964e6bb60be170c9063c616 (diff) |
python api renaming and added headers for some files which didnt have one, no functionality change.
Diffstat (limited to 'source/blender/python/intern/bpy_operator.c')
-rw-r--r-- | source/blender/python/intern/bpy_operator.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/python/intern/bpy_operator.c b/source/blender/python/intern/bpy_operator.c index 70aa46c1302..bdf4027e509 100644 --- a/source/blender/python/intern/bpy_operator.c +++ b/source/blender/python/intern/bpy_operator.c @@ -24,9 +24,11 @@ */ /* Note, this module is not to be used directly by the user. - * its accessed from blender with bpy.__ops__ + * Internally its exposed as '_bpy.ops', which provides functions for 'bpy.ops', a python package. * */ +#include <Python.h> + #include "bpy_operator.h" #include "bpy_operator_wrap.h" #include "bpy_rna.h" /* for setting arg props only - pyrna_py_to_prop() */ @@ -41,6 +43,7 @@ #include "MEM_guardedalloc.h" #include "BKE_report.h" +#include "BKE_context.h" static PyObject *pyop_poll(PyObject *UNUSED(self), PyObject *args) { @@ -255,7 +258,7 @@ static PyObject *pyop_as_string(PyObject *UNUSED(self), PyObject *args) char *buf = NULL; PyObject *pybuf; - bContext *C = (bContext *)BPy_GetContext(); + bContext *C= (bContext *)BPy_GetContext(); if(C==NULL) { PyErr_SetString(PyExc_SystemError, "Context is None, cant get the string representation of this object."); |