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:
authorDaniel Dunbar <daniel@zuster.org>2005-08-07 00:34:33 +0400
committerDaniel Dunbar <daniel@zuster.org>2005-08-07 00:34:33 +0400
commit3753605e948fc4849881f22c85114db1f227ff7e (patch)
treef6825cea3416235a64dd3c7c38e6736702675b14 /source/blender/src/headerbuttons.c
parent843ffdc49a10a25444ea8c33f8f9418cd43407f3 (diff)
- update B_MESH{BROWSE, ALONE, LOCAL} events to flag object changed
Diffstat (limited to 'source/blender/src/headerbuttons.c')
-rw-r--r--source/blender/src/headerbuttons.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/src/headerbuttons.c b/source/blender/src/headerbuttons.c
index 3ae318c359e..97c6eae405d 100644
--- a/source/blender/src/headerbuttons.c
+++ b/source/blender/src/headerbuttons.c
@@ -740,9 +740,10 @@ void do_global_buttons(unsigned short event)
idtest= G.main->mesh.first;
while(idtest) {
if(nr==G.buts->menunr) {
-
set_mesh(ob, (Mesh *)idtest);
+ DAG_object_flush_update(G.scene, ob, OB_RECALC_DATA);
+
BIF_undo_push("Browse Mesh");
allqueue(REDRAWBUTSEDIT, 0);
allqueue(REDRAWVIEW3D, 0);
@@ -1846,6 +1847,8 @@ void do_global_buttons2(short event)
if(okee("Make local")) {
make_local_mesh(me);
make_local_key( me->key );
+
+ DAG_object_flush_update(G.scene, ob, OB_RECALC_DATA);
}
}
}
@@ -2057,6 +2060,8 @@ void do_global_buttons2(short event)
set_mesh(ob, men);
+ DAG_object_flush_update(G.scene, ob, OB_RECALC_DATA);
+
if(ob==G.obedit) allqueue(REDRAWVIEW3D, 0);
}
}