== Retopo ==
Fixed bug #5773, retopo - if in wireframe mode should give an error/warning * Show error message for Retopo All button if view is in wireframe mode * When toggling view shading, update view depth data if shading isn't set to wireframe
This commit is contained in:
@@ -1774,6 +1774,10 @@ void toggle_shading(void)
|
||||
if(G.vd->drawtype==OB_SOLID || G.vd->drawtype==OB_SHADED) G.vd->drawtype= OB_WIRE;
|
||||
else G.vd->drawtype= OB_SOLID;
|
||||
}
|
||||
|
||||
if(G.vd->drawtype != OB_WIRE && G.vd->depths) {
|
||||
G.vd->depths->damaged= 1;
|
||||
}
|
||||
}
|
||||
|
||||
void minmax_verts(float *min, float *max)
|
||||
|
||||
@@ -852,6 +852,11 @@ void retopo_do_all()
|
||||
|
||||
void retopo_do_all_cb(void *j1, void *j2)
|
||||
{
|
||||
if(G.vd->drawtype == OB_WIRE) {
|
||||
error("Cannot apply retopo in wireframe mode");
|
||||
return;
|
||||
}
|
||||
|
||||
retopo_do_all();
|
||||
BIF_undo_push("Retopo all");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user