Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-02-28 16:27:45 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-02-28 16:27:45 +0300
commitbab4cd69913eee9aa30d61db7dc46e21655e4bde (patch)
treeebf28a1372c0db195928a1724b05f56d5c62d35e /source/blender/python/intern/bpy_operator.h
parent0f8969640ccb5e7f615c85576e569ba23dd62c6f (diff)
Python experimental UI API
Can draw panels in the scripts space containing RNA and operator buttons. * Added bpyui.register() so scripts can draw buttons and panels into the scripts space type. * wrapped drawBlock, drawPanels and matchPanelsView2d * Operator buttons take a python dictionary used to set the button defaults. * BPY_getFileAndNum utility function to get the filename and line number python is currently running.
Diffstat (limited to 'source/blender/python/intern/bpy_operator.h')
-rw-r--r--source/blender/python/intern/bpy_operator.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/python/intern/bpy_operator.h b/source/blender/python/intern/bpy_operator.h
index fa12857fe19..2dfd17bb01b 100644
--- a/source/blender/python/intern/bpy_operator.h
+++ b/source/blender/python/intern/bpy_operator.h
@@ -35,8 +35,9 @@
extern PyTypeObject pyop_base_Type;
extern PyTypeObject pyop_func_Type;
+#define BPy_OperatorBase_Check(v) (PyObject_TypeCheck(v, &pyop_base_Type))
#define BPy_OperatorFunc_Check(v) (PyObject_TypeCheck(v, &pyop_func_Type))
-#define BPy_PropertyRNA_Check(v) (PyObject_TypeCheck(v, &pyop_func_Type))
+
typedef struct {
PyObject_HEAD /* required python macro */