diff --git a/libraries/entities/src/EntityItem.cpp b/libraries/entities/src/EntityItem.cpp index 3eb8a84bca..00ba6e8d42 100644 --- a/libraries/entities/src/EntityItem.cpp +++ b/libraries/entities/src/EntityItem.cpp @@ -1810,25 +1810,25 @@ bool EntityItem::shouldSuppressLocationEdits() const { } void EntityItem::setPosition(const glm::vec3& value) { - if (!entity->shouldSuppressLocationEdits()) { + if (!shouldSuppressLocationEdits()) { _transform.setTranslation(value); requiresRecalcBoxes(); } } void EntityItem::setRotation(const glm::quat& rotation) { - if (!entity->shouldSuppressLocationEdits()) { + if (!shouldSuppressLocationEdits()) { _transform.setRotation(rotation); requiresRecalcBoxes(); } } void EntityItem::setVelocity(const glm::vec3& value) { - if (!entity->shouldSuppressLocationEdits()) { + if (!shouldSuppressLocationEdits()) { _velocity = value; } } void EntityItem::setAcceleration(const glm::vec3& value) { - if (!entity->shouldSuppressLocationEdits()) { + if (!shouldSuppressLocationEdits()) { _acceleration = value; } }