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-03-21 09:55:30 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-03-21 09:55:30 +0300
commit6ab2d7ad659606cbf2a315ef9a576c364e6ec9bb (patch)
tree56250d1706115c5e4fd5aa8157a8dda91b8d950a /source/blender/python/intern/bpy_rna.h
parentb4209c56565660c20718fc2e1ad74d4257683a3e (diff)
- lazy subtype initialization rna, was initializing every type in bpy.types at startup, which is slow and doesn't allow access to dynamically added types.
- bpy.types isnt a module anymore, defined as its own PyType, getattr looks up the rna collection each time. - refcounting fixes - fixe epydoc generation with undefined values
Diffstat (limited to 'source/blender/python/intern/bpy_rna.h')
-rw-r--r--source/blender/python/intern/bpy_rna.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/python/intern/bpy_rna.h b/source/blender/python/intern/bpy_rna.h
index 904529b58de..878b2a7d17a 100644
--- a/source/blender/python/intern/bpy_rna.h
+++ b/source/blender/python/intern/bpy_rna.h
@@ -61,6 +61,9 @@ typedef struct {
PropertyRNA *prop;
} BPy_PropertyRNA;
+/* cheap trick */
+#define BPy_BaseTypeRNA BPy_PropertyRNA
+
PyObject *BPY_rna_module( void );
/*PyObject *BPY_rna_doc( void );*/
PyObject *BPY_rna_types( void );