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:
Diffstat (limited to 'source/blender/freestyle/intern/view_map/ViewMap.cpp')
-rw-r--r--source/blender/freestyle/intern/view_map/ViewMap.cpp18
1 files changed, 8 insertions, 10 deletions
diff --git a/source/blender/freestyle/intern/view_map/ViewMap.cpp b/source/blender/freestyle/intern/view_map/ViewMap.cpp
index 47c6c3a1f6a..fa2f95dac72 100644
--- a/source/blender/freestyle/intern/view_map/ViewMap.cpp
+++ b/source/blender/freestyle/intern/view_map/ViewMap.cpp
@@ -323,18 +323,16 @@ static bool ViewEdgeComp(ViewVertex::directedViewEdge &dve1, ViewVertex::directe
if (v2.y() < 0) {
return true;
}
- else {
- return (v1.x() > v2.x());
- }
+
+ return (v1.x() > v2.x());
}
- else {
- if (v2.y() > 0) {
- return false;
- }
- else {
- return (v1.x() < v2.x());
- }
+
+ if (v2.y() > 0) {
+ return false;
}
+
+ return (v1.x() < v2.x());
+
return false;
}