Don't warn about layers not being y-sorted when there are no layers.

This commit is contained in:
Relintai 2024-04-06 21:08:44 +02:00
parent d255d381cb
commit 936c2e07bc

View File

@ -1230,7 +1230,7 @@ String LayeredTileMap::get_configuration_warning() const {
}
} else {
// Check if Y-sort is enabled on the node, but not on any of the layers.
bool need_warning = true;
bool need_warning = layers.size() > 0;
for (uint32_t i = 0; i < layers.size(); ++i) {
const LayeredTileMapLayer *layer = layers[i];