Stud snapping is confusing

Anything divided by 1 and anything multiplied by 1 is itself. Not sure if that was intentional,
This commit is contained in:
pinksub
2022-10-11 13:54:55 -04:00
committed by GitHub
parent e62d3ab49c
commit 8f3d12c516

View File

@@ -83,9 +83,9 @@ MousePoint Mouse::getPositionAndPart(std::vector<Instance *> ignore)
// A crude implementation of stud snapping
Vector3 pSz = currPart->getSize();
pos.x = (ceil(pos.x / 1) * 1);
pos.y = (ceil(pos.y / 1) * 1);
pos.z = (ceil(pos.z / 1) * 1);
pos.x = ceil(pos.x);
pos.y = ceil(pos.y);
pos.z = ceil(pos.z);
return MousePoint(pos, currPart);
}