mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-15 07:51:50 +00:00
fix incorrect entity transform scale & rotation combination
This commit is contained in:
parent
3430e5cd6f
commit
b832b9850f
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue