Skip to content

Commit

Permalink
Script: Fix objontop having an extra leading space
Browse files Browse the repository at this point in the history
  • Loading branch information
meszaros-lajos-gyorgy authored and dscharrer committed Jul 8, 2022
1 parent fa5ca25 commit 466f7fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/graphics/data/Mesh.cpp
Expand Up @@ -176,7 +176,9 @@ long MakeTopObjString(Entity * entity, std::string & dest) {
if(&other != entity) {
if(other.pos.x > box.min.x && other.pos.x < box.max.x && other.pos.z > box.min.z && other.pos.z < box.max.z) {
if(glm::abs(other.pos.y - box.min.y) < 40.f) {
dest += ' ';
if(dest.length() != 0) {
dest += ' ';
}
dest += other.idString();
}
}
Expand Down

0 comments on commit 466f7fa

Please sign in to comment.