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