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-07-14 21:10:44 +0400
committerDaniel Dunbar <daniel@zuster.org>2005-07-14 21:10:44 +0400
commitaa454cd4124b6323201b334e4a5b68cc4badd5a5 (patch)
treeb9f277bff293509692cb70573266a0e2efba1508 /source/blender/src/toolbox.c
parentabbda3a8a148a2b14b645a3a9396b8eace212a8f (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.c5
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);
}