Fixed a latent bug in uiControlSetParent() in the object plan.

This commit is contained in:
Pietro Gagliardi 2015-05-27 00:40:00 -04:00
parent 2fb8e38852
commit 3c68e73dea
1 changed files with 2 additions and 0 deletions

View File

@ -37,6 +37,8 @@ void controlBaseSetParent(uiControl *c, uiControl *parent)
complain("attempt to double unparent uiControl %p", c);
cb->parent = parent;
uiControlCommitSetParent(c, parent);
// for situations such as where the old parent was disabled but the new one is not, etc.
uiControlUpdateState(c);
}
int controlBaseContainerVisible(uiControl *c)