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>2008-05-01 23:46:05 +0400
committerCampbell Barton <ideasman42@gmail.com>2008-05-01 23:46:05 +0400
commitca83969287be6e35ae6bad619e141aa94c0f035e (patch)
tree6c0e6d1fab83fa1237955a099394bbf6550d291f /source/blender/src/buttons_editing.c
parenta87d82023a2790ae62032eb8c272bda0262c5a23 (diff)
deleting a vertex group didn't update the buttons window when the 3d view wasnt open. it also didn't update the 3dview weight paint colors.
copying a group kept appending "_copy" and rose an error when the string was too long. now just add one _copy prefix and number uniquely.
Diffstat (limited to 'source/blender/src/buttons_editing.c')
-rw-r--r--source/blender/src/buttons_editing.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/source/blender/src/buttons_editing.c b/source/blender/src/buttons_editing.c
index f1c356a0a77..b02e89233e5 100644
--- a/source/blender/src/buttons_editing.c
+++ b/source/blender/src/buttons_editing.c
@@ -4585,16 +4585,21 @@ void do_vgroupbuts(unsigned short event)
switch(event) {
case B_NEWVGROUP:
add_defgroup (ob);
+ DAG_object_flush_update(G.scene, ob, OB_RECALC_DATA);
scrarea_queue_winredraw(curarea);
allqueue(REDRAWOOPS, 0);
+
break;
case B_DELVGROUP:
- if ((G.obedit) && (G.obedit == ob))
+ if ((G.obedit) && (G.obedit == ob)) {
del_defgroup (ob);
- else
+ } else {
del_defgroup_in_object_mode (ob);
+ DAG_object_flush_update(G.scene, ob, OB_RECALC_DATA);
+ }
allqueue (REDRAWVIEW3D, 1);
allqueue(REDRAWOOPS, 0);
+ allqueue(REDRAWBUTSEDIT, 1);
BIF_undo_push("Delete vertex group");
break;
case B_ASSIGNVGROUP:
@@ -4616,6 +4621,7 @@ void do_vgroupbuts(unsigned short event)
break;
case B_DESELVGROUP:
sel_verts_defgroup(0);
+ DAG_object_flush_update(G.scene, ob, OB_RECALC_DATA);
allqueue (REDRAWVIEW3D, 1);
allqueue(REDRAWOOPS, 0);
countall();