Wed, 10 Apr 2024 19:16:26 +0200
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;