Fixed display of modifiers in sculpt mode.

This commit is contained in:
2006-11-10 08:18:16 +00:00
parent a4112470d7
commit a54bd4993f
2 changed files with 4 additions and 4 deletions

View File

@@ -2175,7 +2175,7 @@ static int draw_mesh_object(Base *base, int dt, int flag)
if (cageNeedsFree) cageDM->release(cageDM);
if (finalNeedsFree) finalDM->release(finalDM);
}
else if(!G.obedit && G.scene->sculptdata.active_ob == ob) {
else if(!G.obedit && G.scene->sculptdata.active_ob == ob && !modifiers_getVirtualModifierList(ob)) {
sculptmode_draw_mesh(NULL);
}
else {

View File

@@ -1482,15 +1482,15 @@ void sculpt()
G.scene->sculptdata.pivot= unproject(mouse[0],mouse[1],e.grabdata->depth);
do_symmetrical_brush_actions(vertexcosnos,&e,&damaged_verts,&damaged_rects);
}
if(modifier_calculations)
DAG_object_flush_update(G.scene, OBACT, OB_RECALC_DATA);
if(modifier_calculations || sd->brush_type == GRAB_BRUSH) {
calc_damaged_verts(&damaged_verts,e.grabdata);
scrarea_do_windraw(curarea);
persp(PERSP_WIN);
fdrawXORcirc((float)mouse[0],(float)mouse[1],sculptmode_brush()->size);
screen_swapbuffers();
backdrawview3d(0);
} else {
calc_damaged_verts(&damaged_verts,e.grabdata);