diff options
Diffstat (limited to 'source/blender/freestyle/intern/scene_graph/Node.h')
-rw-r--r-- | source/blender/freestyle/intern/scene_graph/Node.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/freestyle/intern/scene_graph/Node.h b/source/blender/freestyle/intern/scene_graph/Node.h index 2e0e94ed5de..96072993590 100644 --- a/source/blender/freestyle/intern/scene_graph/Node.h +++ b/source/blender/freestyle/intern/scene_graph/Node.h @@ -79,13 +79,16 @@ class Node : public BaseObject { /*! Makes the union of _BBox and iBox */ virtual void AddBBox(const BBox<Vec3r> &iBox) { - if (iBox.empty()) + if (iBox.empty()) { return; + } - if (_BBox.empty()) + if (_BBox.empty()) { _BBox = iBox; - else + } + else { _BBox += iBox; + } } /*! Updates the BBox */ |