mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
tweak min dimension to match current behavior
This commit is contained in:
parent
431ee58577
commit
1000318dff
1 changed files with 1 additions and 2 deletions
|
@ -1717,8 +1717,7 @@ void EntityItem::setParentID(const QUuid& value) {
|
|||
}
|
||||
|
||||
void EntityItem::setDimensions(const glm::vec3& value) {
|
||||
const float MIN_ENTITY_DIMENSION = 0.00001f;
|
||||
glm::vec3 newDimensions = glm::max(value, glm::vec3(MIN_ENTITY_DIMENSION));
|
||||
glm::vec3 newDimensions = glm::max(value, glm::vec3(0.0f)); // can never have negative dimensions
|
||||
if (getDimensions() != newDimensions) {
|
||||
_dimensions = newDimensions;
|
||||
markDirtyFlags(Simulation::DIRTY_SHAPE | Simulation::DIRTY_MASS);
|
||||
|
|
Loading…
Reference in a new issue