Skip to content

Commit

Permalink
fix error when switching from DDS to a constant paint value
Browse files Browse the repository at this point in the history
Makes #3949 less severe (a flash of incorrect value instead of a JS
error).
  • Loading branch information
mourner authored and jfirebaugh committed Apr 20, 2017
1 parent fbea856 commit 55cdc76
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/style/style_declaration.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ class StyleDeclaration {
* @private
*/
calculateInterpolationT(globalProperties) {
if (this.isFeatureConstant || this.isZoomConstant) return 0;
return this._functionInterpolationT(globalProperties && globalProperties.zoom, {});
}
}
Expand Down

0 comments on commit 55cdc76

Please sign in to comment.