diff --git a/src/Transformation.h b/src/Transformation.h index 30a72e09..9ea3f81e 100644 --- a/src/Transformation.h +++ b/src/Transformation.h @@ -303,7 +303,7 @@ class Transformation { this->translateSingle += translate; this->translate = this->translateSingle; } else { - glm::mat4 newTranslateMatrix = glm::translate(translate); + glm::mat4 newTranslateMatrix = glm::translate(glm::mat4(1.0f), translate); glm::mat4 parentInverseT = glm::inverseTranspose(this->parentTransform->worldTransform); glm::mat4 newTranslateDiff = parentInverseT * newTranslateMatrix; glm::vec3 newTranslateSet;