src/scene.c

changeset 51
a656496594f9
parent 49
77493525eac2
child 55
6b61b4899587
--- a/src/scene.c	Tue Apr 09 21:18:52 2024 +0200
+++ b/src/scene.c	Wed Apr 10 19:16:26 2024 +0200
@@ -171,6 +171,7 @@
 AscSceneNode *asc_scene_node_empty(void) {
     AscSceneNode *node = calloc(1, sizeof(AscSceneNode));
     node->free_func = (asc_scene_free_func) free;
+    node->scale.x = node->scale.y = node->scale.z = 1;
     asc_transform_identity(node->transform);
     asc_transform_identity(node->world_transform);
     return node;

mercurial