hotkey for changing a mesh to a subsurface and back again: shift+o

hotkey for changing display resolution for subdiv: ctrl+1 or 2 or 3 or 4
written by Green
This commit is contained in:
2003-05-07 19:27:29 +00:00
parent cb2d8c7225
commit f28516e7b0
4 changed files with 92 additions and 8 deletions

View File

@@ -1745,6 +1745,30 @@ void convertmenu(void)
allqueue(REDRAWBUTSEDIT, 0);
}
void flip_subdivison(Object *ob, int level)
{
Base *base;
Mesh *me, *tme;
short i, j;
me = ob->data;
if (level == 0)
{
if(me->flag & ME_SUBSURF)
me->flag &= ~ME_SUBSURF;
else
me->flag |= ME_SUBSURF;
} else {
me->subdiv = level;
}
allqueue(REDRAWVIEW3D, 0);
allqueue(REDRAWOOPS, 0);
allqueue(REDRAWBUTSEDIT, 0);
makeDispList(ob);
}
void copymenu_properties(Object *ob)
{
bProperty *prop, *propn, *propc;