🎨 tree_path.h

This commit is contained in:
Max Brunsfeld 2016-11-09 20:19:02 -08:00
parent ad910ed4f5
commit 89c01a7b22

View file

@ -89,10 +89,11 @@ static void tree_path_ascend(TreePath *path, size_t count) {
static void tree_path_init(TreePath *path, TSTree *tree) {
array_clear(path);
array_push(path,
((TreePathEntry){
.tree = tree, .position = { 0, 0, { 0, 0 } }, .child_index = 0,
}));
array_push(path, ((TreePathEntry){
.tree = tree,
.position = { 0, 0, { 0, 0 } },
.child_index = 0,
}));
if (!tree->visible)
tree_path_descend(path, (TSPoint){ 0, 0 });
}