diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-02-22 20:08:30 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-02-22 20:08:30 +0400 |
commit | 92c47145fde8449cd7fb0547d29dbf9491b40d97 (patch) | |
tree | 3b7077775af29a53c20c5d31a199017f4ba00d77 /source/blender/bmesh/bmesh_class.h | |
parent | b06beb6f35a4e2842fa21eeb059bf1beba4a8e01 (diff) |
bmesh python api change in internal behavior.
* Only have 1 python object per bmesh, vertex, edge, loop, face.
* Store pointers back to the python data in a custom data layer so as not to use more memory for normal editing operations (when pythons not running).
* Currently this data is created and freed along with the BMesh PyObject.
* Incidentally - this fixes comparisons for bmesh elements which wasnt working before.
Diffstat (limited to 'source/blender/bmesh/bmesh_class.h')
-rw-r--r-- | source/blender/bmesh/bmesh_class.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/bmesh/bmesh_class.h b/source/blender/bmesh/bmesh_class.h index 3a62eaa2eeb..6c052a402c9 100644 --- a/source/blender/bmesh/bmesh_class.h +++ b/source/blender/bmesh/bmesh_class.h @@ -179,6 +179,8 @@ typedef struct BMesh { ListBase errorstack; struct Object *ob; /* owner object */ + void *py_handle; + int opflag; /* current operator flag */ } BMesh; |