Ignore layout and translation changes in Controls outside of tree

This commit is contained in:
Yuri Sizov 2022-01-19 18:02:22 +03:00
parent 82efb1d262
commit bcbbbeb050
1 changed files with 4 additions and 2 deletions

View File

@ -733,8 +733,10 @@ void Control::_notification(int p_notification) {
} break;
case NOTIFICATION_TRANSLATION_CHANGED:
case NOTIFICATION_LAYOUT_DIRECTION_CHANGED: {
data.is_rtl_dirty = true;
_size_changed();
if (is_inside_tree()) {
data.is_rtl_dirty = true;
_size_changed();
}
} break;
}
}