diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-05-31 15:51:19 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-05-31 15:55:15 +0300 |
commit | d8dbd49a2f23b7637f05fc058f39bdf6ab706624 (patch) | |
tree | 0805b9372c82ae6505d87e879824efe1d3e32f8e /source/blender/freestyle/intern/stroke/Curve.h | |
parent | 8987f7987d8160e1f6e79e8c85d6ce65b885ab25 (diff) |
Cleanup: style, use braces in source/
Automated using clang-tidy.
Diffstat (limited to 'source/blender/freestyle/intern/stroke/Curve.h')
-rw-r--r-- | source/blender/freestyle/intern/stroke/Curve.h | 36 |
1 files changed, 24 insertions, 12 deletions
diff --git a/source/blender/freestyle/intern/stroke/Curve.h b/source/blender/freestyle/intern/stroke/Curve.h index b84ce45fb6d..3e079256161 100644 --- a/source/blender/freestyle/intern/stroke/Curve.h +++ b/source/blender/freestyle/intern/stroke/Curve.h @@ -123,10 +123,12 @@ class CurvePoint : public Interface0D { virtual Id getId() const { Id id; - if (_t2d == 0) + if (_t2d == 0) { return __A->getId(); - else if (_t2d == 1) + } + else if (_t2d == 1) { return __B->getId(); + } return id; } @@ -134,50 +136,60 @@ class CurvePoint : public Interface0D { virtual Nature::VertexNature getNature() const { Nature::VertexNature nature = Nature::POINT; - if (_t2d == 0) + if (_t2d == 0) { nature |= __A->getNature(); - else if (_t2d == 1) + } + else if (_t2d == 1) { nature |= __B->getNature(); + } return nature; } /*! Cast the Interface0D in SVertex if it can be. */ virtual SVertex *castToSVertex() { - if (_t2d == 0) + if (_t2d == 0) { return __A; - else if (_t2d == 1) + } + else if (_t2d == 1) { return __B; + } return Interface0D::castToSVertex(); } /*! Cast the Interface0D in ViewVertex if it can be. */ virtual ViewVertex *castToViewVertex() { - if (_t2d == 0) + if (_t2d == 0) { return __A->castToViewVertex(); - else if (_t2d == 1) + } + else if (_t2d == 1) { return __B->castToViewVertex(); + } return Interface0D::castToViewVertex(); } /*! Cast the Interface0D in NonTVertex if it can be. */ virtual NonTVertex *castToNonTVertex() { - if (_t2d == 0) + if (_t2d == 0) { return __A->castToNonTVertex(); - else if (_t2d == 1) + } + else if (_t2d == 1) { return __B->castToNonTVertex(); + } return Interface0D::castToNonTVertex(); } /*! Cast the Interface0D in TVertex if it can be. */ virtual TVertex *castToTVertex() { - if (_t2d == 0) + if (_t2d == 0) { return __A->castToTVertex(); - else if (_t2d == 1) + } + else if (_t2d == 1) { return __B->castToTVertex(); + } return Interface0D::castToTVertex(); } |