Fixed a latent bug in uiControlSetParent() in the object plan.
This commit is contained in:
parent
2fb8e38852
commit
3c68e73dea
|
@ -37,6 +37,8 @@ void controlBaseSetParent(uiControl *c, uiControl *parent)
|
||||||
complain("attempt to double unparent uiControl %p", c);
|
complain("attempt to double unparent uiControl %p", c);
|
||||||
cb->parent = parent;
|
cb->parent = parent;
|
||||||
uiControlCommitSetParent(c, 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)
|
int controlBaseContainerVisible(uiControl *c)
|
||||||
|
|
Loading…
Reference in New Issue