mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-22 00:57:17 +01:00
Don't warn about layers not being y-sorted when there are no layers.
This commit is contained in:
parent
d255d381cb
commit
936c2e07bc
@ -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];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user