mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-04-16 00:26:04 +02: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 {
|
} else {
|
||||||
// Check if Y-sort is enabled on the node, but not on any of the layers.
|
// 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) {
|
for (uint32_t i = 0; i < layers.size(); ++i) {
|
||||||
const LayeredTileMapLayer *layer = layers[i];
|
const LayeredTileMapLayer *layer = layers[i];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user