[core] Move layer specific color ramp updates behind common update() method

This commit is contained in:
Alexander Shalamov
2018-10-25 17:30:59 +03:00
parent f6ad5f378e
commit a7274f66d0
7 changed files with 26 additions and 12 deletions

View File

@@ -185,6 +185,10 @@ void RenderHeatmapLayer::render(PaintParameters& parameters, RenderSource*) {
}
}
void RenderHeatmapLayer::update() {
updateColorRamp();
}
void RenderHeatmapLayer::updateColorRamp() {
auto colorValue = unevaluated.get<HeatmapColor>().getValue();
if (colorValue.isUndefined()) {