Fri, 25 Apr 2025 23:06:23 +0200
fix missing update_transform() call when creating a sprite
src/sprite.c | file | annotate | diff | comparison | revisions |
--- a/src/sprite.c Fri Apr 25 18:38:08 2025 +0200 +++ b/src/sprite.c Fri Apr 25 23:06:23 2025 +0200 @@ -54,9 +54,9 @@ node->position.x = (float) args.x; node->position.y = (float) args.y; - node->scale.x = (float) (args.width == 0 ? args.texture->width : args.width); node->scale.y = (float) (args.height == 0 ? args.texture->height : args.height); + asc_node_update_transform(node); return node; }