fix incorrect entity transform scale & rotation combination

This commit is contained in:
MihailRis 2025-02-12 21:16:05 +03:00
parent 3430e5cd6f
commit b832b9850f

View File

@ -31,8 +31,8 @@ static inline std::string SAVED_DATA_VARNAME = "SAVED_DATA";
void Transform::refresh() { void Transform::refresh() {
combined = glm::mat4(1.0f); combined = glm::mat4(1.0f);
combined = glm::translate(combined, pos); combined = glm::translate(combined, pos);
combined = glm::scale(combined, size);
combined = combined * glm::mat4(rot); combined = combined * glm::mat4(rot);
combined = glm::scale(combined, size);
displayPos = pos; displayPos = pos;
displaySize = size; displaySize = size;
dirty = false; dirty = false;