Skip to content

Commit

Permalink
Don't warn about layers not being y-sorted when there are no layers.
Browse files Browse the repository at this point in the history
  • Loading branch information
Relintai committed Apr 6, 2024
1 parent d255d38 commit 936c2e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/layered_tile_map/layered_tile_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down

0 comments on commit 936c2e0

Please sign in to comment.