fix scale not initialized to 1

Wed, 10 Apr 2024 19:16:26 +0200

author
Mike Becker <universe@uap-core.de>
date
Wed, 10 Apr 2024 19:16:26 +0200
changeset 51
a656496594f9
parent 50
d8d2e4817db1
child 52
6d100092fcd4

fix scale not initialized to 1

src/scene.c file | annotate | diff | comparison | revisions
--- 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