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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user