diff options
author | Joseph Eagar <joeedh@gmail.com> | 2009-08-15 21:31:28 +0400 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2009-08-15 21:31:28 +0400 |
commit | 348dc14d5b3511d2d999e60c47308a2fa5fb5033 (patch) | |
tree | eaa4b969a3cd7721ece1a9962a1b0905f9c950ab /source/blender/editors/space_view3d | |
parent | 5c7982de5e3a18ab54c7e265e29d9b9e219a0c17 (diff) |
made the crash handler disabled by a command line flag, insted of being #ifdef'd out on release builds. also did little bit of work on subsurf. and face select can now deselect again, and fixed some other bugs with it (and subsurf).
Diffstat (limited to 'source/blender/editors/space_view3d')
-rw-r--r-- | source/blender/editors/space_view3d/drawobject.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c index 462a942dce9..486ffb3d178 100644 --- a/source/blender/editors/space_view3d/drawobject.c +++ b/source/blender/editors/space_view3d/drawobject.c @@ -1370,12 +1370,14 @@ void mesh_foreachScreenEdge(ViewContext *vc, void (*func)(void *userData, BMEdge static void mesh_foreachScreenFace__mapFunc(void *userData, int index, float *cent, float *no) { struct { void (*func)(void *userData, BMFace *efa, int x, int y, int index); void *userData; ViewContext vc; float pmat[4][4], vmat[4][4]; } *data = userData; + float cent2[3]; BMFace *efa = EDBM_get_face_for_index(data->vc.em, index); short s[2]; + VECCOPY(cent2, cent); if (efa && !BM_TestHFlag(efa, BM_HIDDEN)) { - MTC_Mat4MulVecfl(data->vc.obedit->obmat, cent); - project_short(data->vc.ar, cent, s); + MTC_Mat4MulVecfl(data->vc.obedit->obmat, cent2); + project_short(data->vc.ar, cent2, s); data->func(data->userData, efa, s[0], s[1], index); } |