diff options
Diffstat (limited to 'source/blender/freestyle/intern/stroke/AdvancedPredicates1D.h')
-rwxr-xr-x | source/blender/freestyle/intern/stroke/AdvancedPredicates1D.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/freestyle/intern/stroke/AdvancedPredicates1D.h b/source/blender/freestyle/intern/stroke/AdvancedPredicates1D.h index f348f8593e5..91b63168aa9 100755 --- a/source/blender/freestyle/intern/stroke/AdvancedPredicates1D.h +++ b/source/blender/freestyle/intern/stroke/AdvancedPredicates1D.h @@ -67,9 +67,12 @@ namespace Predicates1D { return "DensityLowerThanUP1D"; } /*! The () operator. */ - bool operator()(Interface1D& inter) { + int operator()(Interface1D& inter) { Functions1D::DensityF1D fun(_sigma); - return (fun(inter) < _threshold); + if (fun(inter) < 0) + return -1; + result = (fun.result < _threshold); + return 0; } private: double _sigma; |