diff options
author | Daniel Dunbar <daniel@zuster.org> | 2005-07-14 19:48:01 +0400 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2005-07-14 19:48:01 +0400 |
commit | befc2bbc41ee7c8396f9acb781977b1af4915626 (patch) | |
tree | 79b88a72113f8f75988896782b0d25502c88a369 /source/blender/src/toolbox.c | |
parent | 1261dc7e4ede3169d2a959a10ee428e492eddfeb (diff) |
- split makeDispList into makeDispList{Mesh,MBall,CurveTypes}, there is
still a makeDispList that dispatches to the appropriate one.
makeDispList is on the way out and this makes it easier to track down
exactly which places use makedispList and for what types of objects.
- switch calls to makeDispList to appropriate more specific function (if
the object type is known by caller).
- added mesh_changed function that invalidates cached mesh data (but does
not rebuild, mesh data gets rebuilt on access). Most old calls to
makeDispListMesh use this instead now.
Diffstat (limited to 'source/blender/src/toolbox.c')
-rw-r--r-- | source/blender/src/toolbox.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/toolbox.c b/source/blender/src/toolbox.c index 9c46f2f5e16..b5096bf8228 100644 --- a/source/blender/src/toolbox.c +++ b/source/blender/src/toolbox.c @@ -1808,8 +1808,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; makeDispList(OBACT); break; - case 6: me->flag ^= ME_OPT_EDGES; makeDispList(OBACT); break; + case 5: me->flag ^= ME_SUBSURF; mesh_changed(OBACT); break; + case 6: me->flag ^= ME_OPT_EDGES; mesh_changed(OBACT); break; } addqueue(curarea->win, REDRAW, 1); } |