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>2014-02-13 04:52:28 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2014-02-13 04:56:56 +0400
commitfdcdd5e52efcbc893cbf251fe0090af9e04aa090 (patch)
tree5c1ddb7f059c6339d3a5c382aa4d7f59208753b9 /source/blender/freestyle
parent108ad3442960ef6ead3015736b3de679146f7a8d (diff)
Freestyle: Follow-up fix for the chaining operation bug in the previous commit.
Many thanks to flokkievids for identifying the inconsistency.
Diffstat (limited to 'source/blender/freestyle')
-rw-r--r--source/blender/freestyle/intern/stroke/ChainingIterators.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/freestyle/intern/stroke/ChainingIterators.cpp b/source/blender/freestyle/intern/stroke/ChainingIterators.cpp
index 2f193cee4b7..66575fd8fc2 100644
--- a/source/blender/freestyle/intern/stroke/ChainingIterators.cpp
+++ b/source/blender/freestyle/intern/stroke/ChainingIterators.cpp
@@ -151,7 +151,8 @@ int ChainSilhouetteIterator::traverse(const AdjacencyIterator& ait)
Nature::VALLEY,
Nature::RIDGE
};
- for (unsigned int i = 0; i < 6; ++i) {
+ int numNatures = sizeof(natures) / sizeof(Nature::EdgeNature);
+ for (unsigned int i = 0; i < numNatures; ++i) {
if (getCurrentEdge()->getNature() & natures[i]) {
int n = 0;
while (!it.isEnd()) {