Merge branch 'develop' into feature/radar-smoothing

This commit is contained in:
Dan Paulat 2024-12-14 06:57:24 -06:00
commit 82ea0dacd3
6 changed files with 157 additions and 6 deletions

View file

@ -136,7 +136,11 @@ void PlacefileText::Impl::RenderTextDrawItem(
std::chrono::system_clock::now() :
selectedTime_;
if ((!thresholded_ || mapDistance_ <= di->threshold_) &&
const bool thresholdMet =
!thresholded_ || mapDistance_ <= di->threshold_ ||
(di->threshold_.value() < 0.0 && mapDistance_ >= -(di->threshold_));
if (thresholdMet &&
(di->startTime_ == std::chrono::system_clock::time_point {} ||
(di->startTime_ <= selectedTime && selectedTime < di->endTime_)))
{