fixed three bugs:

- subsurf also smoothed loose vertices, in a strange way that never showed
  up until 'draw subsurf handles' was implemented.
  fixed subsurf code not to include loose vertices anymore
- saving a file in editmode caused a new displaylist to made... fixed an
  old bad hack from NaN period.
  (displists are still lousy code...)
- fixed drawing vertices in frontbuffer on select.
  the delay you see is because blender waits for 'rightmouse transform'.
This commit is contained in:
2003-10-25 11:38:04 +00:00
parent f4ce3d1b86
commit 3545113051
3 changed files with 58 additions and 39 deletions

View File

@@ -1065,9 +1065,10 @@ void exit_editmode(int freedata) /* freedata==0 at render */
error("too many vertices");
return;
}
load_editMesh();
load_editMesh(); /* makes new displist */
if(freedata) free_editMesh();
if(G.f & G_FACESELECT) allqueue(REDRAWIMAGE, 0);
build_particle_system(G.obedit);
@@ -1094,12 +1095,9 @@ void exit_editmode(int freedata) /* freedata==0 at render */
ob= G.obedit;
/* obedit has to be 0 for curve-extrude, not for smeshes */
if(ob->type==OB_CURVE) G.obedit= 0;
G.obedit= 0;
/* displist make is different in editmode */
if(freedata) G.obedit= NULL;
makeDispList(ob);
/* has this influence at other objects? */
if(ob->type==OB_CURVE) {
@@ -1134,9 +1132,6 @@ void exit_editmode(int freedata) /* freedata==0 at render */
allqueue(REDRAWBUTSEDIT, 0);
allqueue(REDRAWBUTSLOGIC, 0);
}
else {
G.obedit= ob;
}
scrarea_queue_headredraw(curarea);
}