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:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2013-03-11 10:56:51 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2013-03-11 10:56:51 +0400
commit2d801f2bec3c4de663f33b0f0f198a12f09ef989 (patch)
treedfe16a3ca2213bd5b6579ed3bc2ac2902b678067 /source/blender/freestyle/intern/stroke/Operators.cpp
parent4a92d82626980d6d1690113b9d27aae282fd48eb (diff)
Another big code clean-up patch from Bastien Montagne, thanks again!
Diffstat (limited to 'source/blender/freestyle/intern/stroke/Operators.cpp')
-rw-r--r--source/blender/freestyle/intern/stroke/Operators.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/freestyle/intern/stroke/Operators.cpp b/source/blender/freestyle/intern/stroke/Operators.cpp
index e35a811fcab..df2c3dad175 100644
--- a/source/blender/freestyle/intern/stroke/Operators.cpp
+++ b/source/blender/freestyle/intern/stroke/Operators.cpp
@@ -515,7 +515,7 @@ int Operators::sequentialSplit(UnaryPredicate0D& pred, float sampling)
point = dynamic_cast<CurvePoint*>(&(*it));
new_curve->push_vertex_back(point);
++it;
- for (; it!= end; ++it) {
+ for (; it != end; ++it) {
point = dynamic_cast<CurvePoint*>(&(*it));
new_curve->push_vertex_back(point);
if (pred(it) < 0) {
@@ -623,14 +623,14 @@ int Operators::sequentialSplit(UnaryPredicate0D& startingPred, UnaryPredicate0D&
splitted_chains.push_back(new_curve);
}
// find next start
- do{
+ do {
++itStart;
if (itStart == end)
break;
if (startingPred(itStart) < 0)
goto error;
} while (!startingPred.result);
- } while ((itStart!=end) && (itStart!=last));
+ } while ((itStart != end) && (itStart != last));
}
// Update the current set of chains: