Draw invalidation fix.

--HG--
branch : dev-stateful-drawable
This commit is contained in:
Martín Lucas Golini
2018-12-20 11:01:57 -03:00
parent 3ba966eebd
commit bc50fa5c01
3 changed files with 5 additions and 3 deletions

View File

@@ -468,7 +468,7 @@ class EE_API Node : public Transformable {
SceneNode * findSceneNode();
void updateDrawInvalidator();
void updateDrawInvalidator( bool force = false );
};
}}

View File

@@ -194,10 +194,10 @@ Node * Node::getParent() const {
return mParentCtrl;
}
void Node::updateDrawInvalidator() {
void Node::updateDrawInvalidator( bool force ) {
mNodeDrawInvalidator = getDrawInvalidator();
if ( NULL != mChild && mChild->mNodeDrawInvalidator != mNodeDrawInvalidator ) {
if ( NULL != mChild && ( mChild->mNodeDrawInvalidator != mNodeDrawInvalidator || force ) ) {
Node * ChildLoop = mChild;
while ( NULL != ChildLoop ) {

View File

@@ -261,6 +261,8 @@ void UIWindow::updateWinFlags() {
fixChildsSize();
}
updateDrawInvalidator( true );
if ( isModal() ) {
createModalControl();
}