Skip to content

Commit

Permalink
Fix linux build fails for missing parameter on glm::translate
Browse files Browse the repository at this point in the history
  • Loading branch information
enginmanap committed Nov 27, 2024
1 parent 824d6fb commit c10efb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Transformation.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c10efb0

Please sign in to comment.