Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-05-31 16:21:16 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-05-31 16:22:52 +0300
commitaba4e6810f8b4d0e459137b64e061a2cadc457d1 (patch)
tree2b6159c7ba0f23c020600b71276772fa4a882b5b /source/blender/freestyle/intern/winged_edge/WEdge.h
parent72a563cdee8fef198a200ff65b57ddb847c01795 (diff)
Cleanup: style, use braces in source/ (include disabled blocks)
Diffstat (limited to 'source/blender/freestyle/intern/winged_edge/WEdge.h')
-rw-r--r--source/blender/freestyle/intern/winged_edge/WEdge.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/source/blender/freestyle/intern/winged_edge/WEdge.h b/source/blender/freestyle/intern/winged_edge/WEdge.h
index 037e21ab4e3..424cd76a6b7 100644
--- a/source/blender/freestyle/intern/winged_edge/WEdge.h
+++ b/source/blender/freestyle/intern/winged_edge/WEdge.h
@@ -799,8 +799,9 @@ class WFace {
inline WVertex *GetVertex(unsigned int index)
{
#if 0
- if (index >= _OEdgeList.size())
+ if (index >= _OEdgeList.size()) {
return NULL;
+ }
#endif
return _OEdgeList[index]->GetaVertex();
}
@@ -846,8 +847,9 @@ class WFace {
inline WFace *GetBordingFace(int index)
{
#if 0
- if (index >= _OEdgeList.size())
+ if (index >= _OEdgeList.size()) {
return NULL;
+ }
#endif
return _OEdgeList[index]->GetaFace();
}
@@ -1286,10 +1288,12 @@ class WShape {
wv++) {
for (unsigned int i = 0; i < 3; i++) {
v = (*wv)->GetVertex();
- if (v[i] < _min[i])
+ if (v[i] < _min[i]) {
_min[i] = v[i];
- if (v[i] > _max[i])
+ }
+ if (v[i] > _max[i]) {
_max[i] = v[i];
+ }
}
}
}