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
path: root/source
diff options
context:
space:
mode:
authorJoseph Gilbert <ascotan@gmail.com>2003-10-21 21:25:27 +0400
committerJoseph Gilbert <ascotan@gmail.com>2003-10-21 21:25:27 +0400
commit594f3cddca20fecf91849a28918282018b478084 (patch)
tree3bfa46119ad5f44a422d477cd4e892201b336da4 /source
parent193dce6d9811e1aca2ef7b1f060dd480fbeeef30 (diff)
A few bugfixes to the vgrouping methods
Diffstat (limited to 'source')
-rw-r--r--source/blender/python/api2_2x/NMesh.c24
1 files changed, 3 insertions, 21 deletions
diff --git a/source/blender/python/api2_2x/NMesh.c b/source/blender/python/api2_2x/NMesh.c
index 8c25aac01ab..bae9faa42ea 100644
--- a/source/blender/python/api2_2x/NMesh.c
+++ b/source/blender/python/api2_2x/NMesh.c
@@ -2136,6 +2136,7 @@ static PyObject *NMesh_assignVertsToGroup (PyObject *self, PyObject *args)
//assignmode = "replace", "add", "subtract"
// replace weight - add addition weight to vertex for this group
// - remove group influence from this vertex
+ //the function will not like it if your in editmode...
char* groupStr;
char* assignmodeStr = NULL;
@@ -2202,21 +2203,6 @@ static PyObject *NMesh_assignVertsToGroup (PyObject *self, PyObject *args)
add_vert_defnr(object, nIndex, tempInt, weight, assignmode);
}
- //enter editmode
- if((G.obedit == 0)) {
- BASACT->object = object;
- G.obedit= BASACT->object;
- }
-
- //update the mesh
- make_editMesh();
- load_editMesh();
-
- //exit editmode
- G.obedit= 0;
-
- allqueue (REDRAWVIEW3D, 1);
-
return EXPP_incr_ret (Py_None);
}
@@ -2235,8 +2221,6 @@ static PyObject *NMesh_removeVertsFromGroup (PyObject *self, PyObject *args)
/* argc is the number of parameters passed in: 1 (no list given) or 2: */
argc = PyObject_Length(args);
- //listObject = (void*)-2054456; //uninitialized
-
if (!PyArg_ParseTuple(args, "s|O!", &groupStr, &PyList_Type, &listObject))
return EXPP_ReturnPyObjError (PyExc_TypeError,
"expected string and optional list argument");
@@ -2265,11 +2249,9 @@ static PyObject *NMesh_removeVertsFromGroup (PyObject *self, PyObject *args)
return EXPP_ReturnPyObjError (PyExc_AttributeError,
"no deform groups assigned to mesh");
-// if (listObject == (void*)-2054456) /*if uninitialized*/ {
-
- if (argc == 1) /* no list given */ {
+ if (argc == 1) /* no list given */ {
//enter editmode
- if((G.obedit == 0))
+ if((G.obedit == 0))
{
//set current object
BASACT->object = object;