rename poorly named variable

This commit is contained in:
Seth Alves 2016-02-19 11:32:59 -08:00
parent ee5a82f9b8
commit fea60499d4

View file

@ -92,10 +92,10 @@ void Model::setScale(const glm::vec3& scale) {
_scaledToFit = false; _scaledToFit = false;
} }
const float METERS_PER_MILLIMETER = 0.01f; const float SCALE_CHANGE_EPSILON = 0.01f;
void Model::setScaleInternal(const glm::vec3& scale) { void Model::setScaleInternal(const glm::vec3& scale) {
if (glm::distance(_scale, scale) > METERS_PER_MILLIMETER) { if (glm::distance(_scale, scale) > SCALE_CHANGE_EPSILON) {
_scale = scale; _scale = scale;
if (_scale.x == 0.0f || _scale.y == 0.0f || _scale.z == 0.0f) { if (_scale.x == 0.0f || _scale.y == 0.0f || _scale.z == 0.0f) {
assert(false); assert(false);