solstice-anim

Geometry animation library of the solstice app
git clone git://git.meso-star.com/solstice-anim.git
Log | Files | Refs | README | LICENSE

commit 0a787e71c807307286c30c3954ee1a50c027ff93
parent 2d0a891a65ab0dab24bd695873c1cb7ef0e9f002
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Thu, 10 Nov 2016 17:57:45 +0100

BugFix in a test (use uninitialized var).

Diffstat:
Msrc/sanim.h | 2+-
Msrc/test_sanim_node_pivot.c | 5++---
2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/sanim.h b/src/sanim.h @@ -98,7 +98,7 @@ struct sanim_policy_point { }; struct sanim_policy_node_target { - const struct sanim_node* tracked_node; + const void* tracked_node; }; struct sanim_policy_out_dir { diff --git a/src/test_sanim_node_pivot.c b/src/test_sanim_node_pivot.c @@ -259,13 +259,12 @@ main(int argc, char** argv) /* 1 axis tracking an invalid node target */ + CHECK(my_type_create(&allocator, &t1), RES_OK); + CHECK(my_type_create(&allocator, &t3), RES_OK); d3(pivot.data.pivot1.ref_normal, 0, 0, 1); d3(pivot.data.pivot1.ref_point, 0, 0, 0); CHECK(my_type_track_me(t3, &tracking), RES_OK); - - CHECK(my_type_create(&allocator, &t1), RES_OK); CHECK(my_type_pivot_create(&allocator, &pivot, &tracking, &t2), RES_OK); - CHECK(my_type_create(&allocator, &t3), RES_OK); CHECK(my_type_add_child(t1, t2), RES_OK); CHECK(my_type_add_child(t2, t3), RES_OK);