src/sprite.c

changeset 97
f9a55457b26f
parent 90
aa8e7a38905c
--- 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;
 }

mercurial