diff options
-rw-r--r-- | examples/transforms/ex_transforms.c | 3 | ||||
-rw-r--r-- | src/transform_hierarchy.c | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/examples/transforms/ex_transforms.c b/examples/transforms/ex_transforms.c index 0f1752d..383454e 100644 --- a/examples/transforms/ex_transforms.c +++ b/examples/transforms/ex_transforms.c @@ -73,7 +73,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_scene(&frame_arena, core->models, &core->renderer, &cam, transform_tree, &our_scene); // draw_model(&core->renderer, &cam, cube, &node1->world_matrix_tf, &our_scene); diff --git a/src/transform_hierarchy.c b/src/transform_hierarchy.c index a36b8ef..f1c859a 100644 --- a/src/transform_hierarchy.c +++ b/src/transform_hierarchy.c @@ -180,4 +180,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 |