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>2012-02-20 01:07:32 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2012-02-20 01:07:32 +0400
commit5f093d6a5867a365900158fcca71296852787aac (patch)
tree80a0d1858cff4f2837db6b094bd81fe7b9b5c2e7
parent910f04ca6373510f463de2541576b479671dc2ef (diff)
Fix for a bug in the computation of smooth edges (used for ridges and valleys).
-rwxr-xr-xsource/blender/freestyle/intern/winged_edge/WXEdge.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/freestyle/intern/winged_edge/WXEdge.h b/source/blender/freestyle/intern/winged_edge/WXEdge.h
index 1734ad1b41f..c51b6a84a98 100755
--- a/source/blender/freestyle/intern/winged_edge/WXEdge.h
+++ b/source/blender/freestyle/intern/winged_edge/WXEdge.h
@@ -296,11 +296,11 @@ public:
updateDotPInfos();
}
inline void updateDotPInfos() {
+ _nPosDotP = 0;
+ _nNullDotP = 0;
for(vector<real>::iterator d=_DotP.begin(), dend=_DotP.end();
d!=dend;
++d){
- _nPosDotP = 0;
- _nNullDotP = 0;
if((*d) > 0)
++_nPosDotP;
if((*d) == 0)