From e6273e4dc87a036547447492396c9939e89ecf23 Mon Sep 17 00:00:00 2001 From: Omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sun, 21 Apr 2024 11:57:20 +1000 Subject: make it compile --- examples/property_animation/ex_property_animation.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'examples/property_animation') diff --git a/examples/property_animation/ex_property_animation.c b/examples/property_animation/ex_property_animation.c index 5ca0836..c548db4 100644 --- a/examples/property_animation/ex_property_animation.c +++ b/examples/property_animation/ex_property_animation.c @@ -83,12 +83,11 @@ int main() { render_frame_begin(&core->renderer); - mat4 model = mat4_translation(VEC3_ZERO); quat rot = animation_sample(track.rotation, t).rotation; // quat rot = quat_ident(); transform tf = transform_create(VEC3_ZERO, rot, 1.0); - - draw_model(&core->renderer, &game.camera, cube, tf, &our_scene); + mat4 model_tf = transform_to_mat(&tf); + draw_model(&core->renderer, &game.camera, cube, &model_tf, &our_scene); // gfx_backend_draw_frame(&core->renderer, &game.camera, model, NULL); -- cgit v1.2.3-70-g09d2