Events added for:

- clear parent (didn't do a recalc data for deformed objects)
- add/remove object name in modifier menu (redraw event)
This commit is contained in:
Ton Roosendaal
2005-07-22 21:42:56 +00:00
parent 365bea41d6
commit dcf210b826
2 changed files with 3 additions and 2 deletions

View File

@@ -627,6 +627,7 @@ void do_common_editbuts(unsigned short event) // old name, is a mix of object an
DAG_scene_sort(G.scene); // makes new dag
ob= OBACT;
if(ob) ob->recalc |= OB_RECALC;
allqueue(REDRAWVIEW3D, 0);
break;
default:
if(event>=B_OBLAY && event<=B_OBLAY+31) {

View File

@@ -799,7 +799,7 @@ void clear_parent(void)
if(mode==1 || mode==2) {
par= base->object->parent;
base->object->parent= NULL;
base->object->recalc |= OB_RECALC_OB;
base->object->recalc |= OB_RECALC;
if(mode==2) {
base->object->track= NULL;
@@ -808,7 +808,7 @@ void clear_parent(void)
}
else if(mode==3) {
Mat4One(base->object->parentinv);
base->object->recalc |= OB_RECALC_OB;
base->object->recalc |= OB_RECALC;
}
}
base= base->next;