polyadvent

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

commit 4c84a2d4224856e581654156c725e88c682a77c9
parent 96d04833968b65c1e9c59b506a7ed6429dd09eaf
Author: William Casarin <jb55@jb55.com>
Date:   Sun, 21 Jul 2019 16:47:36 -0700

misc node debug

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

diff --git a/src/node.c b/src/node.c @@ -145,8 +145,9 @@ int node_recalc(struct node *node) { float rot[9] = {1.0}; struct node *parent = get_node(&node->parent_id); - if (parent && node_needs_recalc(parent)) - node_recalc(parent); + if (parent && node_needs_recalc(parent)) { + node_recalc(parent); + } if (!node_needs_recalc(node)) { node_recalc_children(node); @@ -166,6 +167,7 @@ int node_recalc(struct node *node) { } else { + debug("custom updating %s\n", node->label); node->custom_update(node); }