Fix bug with changing Sprite scale at runtime

This commit is contained in:
sam-astro 2022-05-23 09:34:20 -04:00 committed by GitHub
parent 44b07f402b
commit 61a6d98e49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -394,6 +394,8 @@ public:
// Centers
rect.x = position.x - (rect.w / 2);
rect.y = position.y - (rect.h / 2);
rect.w = scale.x;
rect.h = scale.y;
return 0;
}