Skip to content

Commit ac0a2e1

Browse files
committed
fix colormap update bug
1 parent 19253de commit ac0a2e1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/polyscope/scalar_quantity.ipp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,7 @@ template <typename QuantityT>
357357
QuantityT* ScalarQuantity<QuantityT>::setMapRange(std::pair<double, double> val) {
358358
vizRangeMin = val.first;
359359
vizRangeMax = val.second;
360+
colorBar.colormapRange = std::pair<float, float>(vizRangeMin.get(), vizRangeMax.get());
360361
requestRedraw();
361362
return &quantity;
362363
}

0 commit comments

Comments
 (0)