diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-12-12 19:22:54 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-12-12 19:22:54 +0400 |
commit | d5c2a1f8f4c9d00d7bdb66e5c2a5f8602597f989 (patch) | |
tree | 46c65a7cd16c304bc8ac99104876e71210da5b4f /source/blender/python/bmesh/bmesh_py_api.c | |
parent | 8e9a6871b421cc8b4682b4ce2c046610069791b1 (diff) |
remove context argument from EDBM_update_generic()
Diffstat (limited to 'source/blender/python/bmesh/bmesh_py_api.c')
-rw-r--r-- | source/blender/python/bmesh/bmesh_py_api.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/source/blender/python/bmesh/bmesh_py_api.c b/source/blender/python/bmesh/bmesh_py_api.c index 5e6fd1c8019..9abb13731af 100644 --- a/source/blender/python/bmesh/bmesh_py_api.c +++ b/source/blender/python/bmesh/bmesh_py_api.c @@ -134,14 +134,8 @@ static PyObject *bpy_bm_update_edit_mesh(PyObject *UNUSED(self), PyObject *args) } { - /* XXX, not great - infact this function could just not use the context at all - * postpone that change until after release: BMESH_TODO - campbell */ - extern struct bContext *BPy_GetContext(void); - extern void EDBM_update_generic(struct bContext *C, BMEditMesh *em, - const short do_tessface, const short is_destructive); - - struct bContext *C = BPy_GetContext(); - EDBM_update_generic(C, me->edit_btmesh, do_tessface, is_destructive); + extern void EDBM_update_generic(BMEditMesh *em, const short do_tessface, const short is_destructive); + EDBM_update_generic(me->edit_btmesh, do_tessface, is_destructive); } Py_RETURN_NONE; |