fix: incomplete size transform support by entities

This commit is contained in:
MihailRis
2025-12-08 19:21:49 +03:00
committed by ShiftyX1
parent 98a3971e13
commit bc1ff634a3
7 changed files with 53 additions and 26 deletions
+3 -3
View File
@@ -23,19 +23,19 @@ struct Transform {
void refresh();
inline void setRot(glm::mat3 m) {
inline void setRot(const glm::mat3& m) {
rot = m;
dirty = true;
}
inline void setSize(glm::vec3 v) {
inline void setSize(const glm::vec3& v) {
if (glm::distance2(displaySize, v) >= EPSILON) {
dirty = true;
}
size = v;
}
inline void setPos(glm::vec3 v) {
inline void setPos(const glm::vec3& v) {
if (glm::distance2(displayPos, v) >= EPSILON) {
dirty = true;
}