added RNA access to operators pointers to be documented with epy_doc_gen.py.

eg: print (bpyoperator.VIEW3D_OT_viewnumpad.rna.__members__)

docs for bpyoperator
http://www.graphicall.org/ftp/ideasman42/html/bpyoperator-module.html
This commit is contained in:
2008-12-29 03:24:13 +00:00
parent b6b61681ef
commit 65fbab9f4d
4 changed files with 151 additions and 11 deletions

View File

@@ -28,6 +28,7 @@
#include "RNA_access.h"
#include "RNA_types.h"
#include "BKE_idprop.h"
extern PyTypeObject pyrna_struct_Type;
extern PyTypeObject pyrna_prop_Type;
@@ -35,6 +36,7 @@ extern PyTypeObject pyrna_prop_Type;
typedef struct {
PyObject_VAR_HEAD /* required python macro */
PointerRNA ptr;
IDProperty *properties; /* needed in some cases for RNA_pointer_create(), free when deallocing */
} BPy_StructRNA;
typedef struct {