[core] Eliminate round-trip through Value in CameraFunction::evaluate
This commit is contained in:
@@ -25,7 +25,7 @@ public:
|
||||
|
||||
T evaluate(float zoom) const {
|
||||
return stops.match([&] (const auto& s) {
|
||||
return s.evaluate(Value(double(zoom))).value_or(T());
|
||||
return s.evaluate(zoom).value_or(T());
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user