1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

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

View File

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