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>2012-12-12 19:22:54 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-12-12 19:22:54 +0400
commitd5c2a1f8f4c9d00d7bdb66e5c2a5f8602597f989 (patch)
tree46c65a7cd16c304bc8ac99104876e71210da5b4f /source/blender/python/bmesh/bmesh_py_api.c
parent8e9a6871b421cc8b4682b4ce2c046610069791b1 (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.c10
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;