polyadvent

A game engine from scratch in C
git clone git://jb55.com/polyadvent
Log | Files | Refs | README

commit ab2c88cbeb4b7b1ba9b804f4e796966dba663587
parent 64b40c030481d52b60f76cb804e416a718980d95
Author: William Casarin <jb55@jb55.com>
Date:   Wed,  7 Nov 2018 14:00:53 -0800

node: just recalc on node_world

don't worry about perf for now

Diffstat:
Msrc/node.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/node.c b/src/node.c @@ -60,8 +60,8 @@ int node_needs_recalc(struct node *node) } vec3 *node_world(struct node *node) { - assert(!node_needs_recalc(node)); - return &node->mat[M_X]; + node_recalc(node); + return &node->mat[M_X]; } void node_mark_for_recalc(struct node *node) {