diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2014-02-13 04:52:28 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2014-02-13 04:56:56 +0400 |
commit | fdcdd5e52efcbc893cbf251fe0090af9e04aa090 (patch) | |
tree | 5c1ddb7f059c6339d3a5c382aa4d7f59208753b9 /source | |
parent | 108ad3442960ef6ead3015736b3de679146f7a8d (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')
-rw-r--r-- | source/blender/freestyle/intern/stroke/ChainingIterators.cpp | 3 |
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()) { |