diff options
Diffstat (limited to 'source/blender/render/intern/raytrace')
-rw-r--r-- | source/blender/render/intern/raytrace/reorganize.h | 5 | ||||
-rw-r--r-- | source/blender/render/intern/raytrace/vbvh.h | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/render/intern/raytrace/reorganize.h b/source/blender/render/intern/raytrace/reorganize.h index 6efe37b81a3..11d12dac23c 100644 --- a/source/blender/render/intern/raytrace/reorganize.h +++ b/source/blender/render/intern/raytrace/reorganize.h @@ -271,8 +271,9 @@ void pushdown(Node *parent) s_child = next_s_child; } - for(Node *i = parent->child; RE_rayobject_isAligned(i) && i; i = i->sibling) - pushdown( i ); + for (Node *i = parent->child; RE_rayobject_isAligned(i) && i; i = i->sibling) { + pushdown(i); + } } diff --git a/source/blender/render/intern/raytrace/vbvh.h b/source/blender/render/intern/raytrace/vbvh.h index 7d4d25c8d00..e1b4ec420ef 100644 --- a/source/blender/render/intern/raytrace/vbvh.h +++ b/source/blender/render/intern/raytrace/vbvh.h @@ -167,8 +167,8 @@ struct BuildBinaryVBVH { Node *node = create_node(); INIT_MINMAX(node->bb, node->bb+3); - rtbuild_merge_bb(builder, node->bb, node->bb+3); - node->child = (Node*) rtbuild_get_primitive( builder, 0 ); + rtbuild_merge_bb(builder, node->bb, node->bb+3); + node->child = (Node *) rtbuild_get_primitive(builder, 0); return node; } else |