Excluded the 3D cursor from being clipped with the new ALT+B clipping.

Also added a refresh for the object that gets (Pkey) separated in mesh
editmode, might solve issue reported by Campbell.
This commit is contained in:
Ton Roosendaal
2005-09-23 07:28:15 +00:00
parent abb66762f1
commit 367c91bf34
2 changed files with 9 additions and 2 deletions

View File

@@ -757,11 +757,17 @@ static void drawfloor(void)
}
static void drawcursor(void)
static void drawcursor(View3D *v3d)
{
short mx,my,co[2];
int flag;
/* we dont want the clipping for cursor */
flag= v3d->flag;
v3d->flag= 0;
project_short( give_cursor(), co);
v3d->flag= flag;
mx = co[0];
my = co[1];
@@ -2215,7 +2221,7 @@ void drawview3dspace(ScrArea *sa, void *spacedata)
persp(PERSP_WIN); // set ortho
if(v3d->persp>1) drawviewborder();
if(!(G.f & G_PLAYANIM)) drawcursor();
if(!(G.f & G_PLAYANIM)) drawcursor(v3d);
draw_view_icon();
ob= OBACT;

View File

@@ -1351,6 +1351,7 @@ void separate_mesh(void)
/* hashedges are freed now, make new! */
editMesh_set_hash();
DAG_object_flush_update(G.scene, G.obedit, OB_RECALC_DATA);
G.obedit= oldob;
BASACT= oldbase;
BASACT->flag |= SELECT;