fix missing update_transform() call when creating a sprite default tip

Fri, 25 Apr 2025 23:06:23 +0200

author
Mike Becker <universe@uap-core.de>
date
Fri, 25 Apr 2025 23:06:23 +0200
changeset 97
f9a55457b26f
parent 96
9e25f080a33e

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;
 }

mercurial