From 23432fa4b1e4503f6ce7264f1a64fbb9bb42ac3d Mon Sep 17 00:00:00 2001 From: Omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sun, 17 Mar 2024 16:03:20 +1100 Subject: comment --- examples/transforms/ex_transforms.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/transforms/ex_transforms.c b/examples/transforms/ex_transforms.c index a3bede7..ccb9a6a 100644 --- a/examples/transforms/ex_transforms.c +++ b/examples/transforms/ex_transforms.c @@ -70,7 +70,8 @@ int main() { render_frame_begin(&core->renderer); transform_hierarchy_propagate_transforms(transform_tree); - node1->tf.position.x += 0.002; + // TODO: Add setters to transform API + node1->tf.position.x += 0.004; node1->tf.is_dirty = true; draw_model(&core->renderer, &cam, cube, &node1->world_matrix_tf, &our_scene); draw_model(&core->renderer, &cam, cube, &node2->world_matrix_tf, &our_scene); -- cgit v1.2.3-70-g09d2 From a757e6ffacb59a0956ded192442c43a813b69313 Mon Sep 17 00:00:00 2001 From: Omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sun, 17 Mar 2024 16:04:43 +1100 Subject: free print_ctx --- src/transform_hierarchy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/transform_hierarchy.c b/src/transform_hierarchy.c index a8b3df1..c478dd5 100644 --- a/src/transform_hierarchy.c +++ b/src/transform_hierarchy.c @@ -179,4 +179,5 @@ void transform_hierarchy_debug_print(transform_node* start_node, core* core) { ctx->core = core; ctx->indentation_lvl = 0; transform_hierarchy_dfs(start_node, print_node, true, (void*)ctx); + free(ctx); } \ No newline at end of file -- cgit v1.2.3-70-g09d2