diff options
author | Daniel Dunbar <daniel@zuster.org> | 2005-07-14 21:10:44 +0400 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2005-07-14 21:10:44 +0400 |
commit | aa454cd4124b6323201b334e4a5b68cc4badd5a5 (patch) | |
tree | b9f277bff293509692cb70573266a0e2efba1508 /source/blender/src/toolbox.c | |
parent | abbda3a8a148a2b14b645a3a9396b8eace212a8f (diff) |
- switch to using DAG_object_flush_update instead of mesh_changed
- mesh drawing calculated derived surface before clipping to view matrix,
waste for offscreen objects
Diffstat (limited to 'source/blender/src/toolbox.c')
-rw-r--r-- | source/blender/src/toolbox.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/src/toolbox.c b/source/blender/src/toolbox.c index b5096bf8228..92ea8264233 100644 --- a/source/blender/src/toolbox.c +++ b/source/blender/src/toolbox.c @@ -67,6 +67,7 @@ #include "BLI_blenlib.h" #include "BLI_arithb.h" +#include "BKE_depsgraph.h" #include "BKE_plugin_types.h" #include "BKE_utildefines.h" #include "BKE_mesh.h" @@ -1808,8 +1809,8 @@ static void tb_do_mesh(void *arg, int event){ case 2: G.f ^= G_DRAWEDGES; break; case 3: G.f ^= G_DRAWFACES; break; case 4: G.f ^= G_DRAWNORMALS; break; - case 5: me->flag ^= ME_SUBSURF; mesh_changed(OBACT); break; - case 6: me->flag ^= ME_OPT_EDGES; mesh_changed(OBACT); break; + case 5: me->flag ^= ME_SUBSURF; DAG_object_flush_update(G.scene, OBACT, OB_RECALC_DATA); break; + case 6: me->flag ^= ME_OPT_EDGES; DAG_object_flush_update(G.scene, OBACT, OB_RECALC_DATA); break; } addqueue(curarea->win, REDRAW, 1); } |