summaryrefslogtreecommitdiff
path: root/src/mbgl/style/expression/is_constant.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/style/expression/is_constant.cpp')
-rw-r--r--src/mbgl/style/expression/is_constant.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mbgl/style/expression/is_constant.cpp b/src/mbgl/style/expression/is_constant.cpp
index e6bd05418f..7b14e79eda 100644
--- a/src/mbgl/style/expression/is_constant.cpp
+++ b/src/mbgl/style/expression/is_constant.cpp
@@ -33,6 +33,10 @@ bool isFeatureConstant(const Expression& expression) {
return false;
}
+ if (expression.getKind() == Kind::Distance) {
+ return false;
+ }
+
if (expression.getKind() == Kind::CollatorExpression) {
// Although the results of a Collator expression with fixed arguments
// generally shouldn't change between executions, we can't serialize them