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:
Diffstat (limited to 'source/blender/freestyle/intern/stroke/AdvancedPredicates1D.h')
-rwxr-xr-xsource/blender/freestyle/intern/stroke/AdvancedPredicates1D.h7
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;