diff --git a/CHANGELOG.md b/CHANGELOG.md index 1add4c0a..a07c2f24 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ - Simplified traffic sign matching in FileReader - The occupancy set, initial time step ,and final time step are now computed properties of TrajectoryPrediction - Trajectory now allows direct access to the state list +- Activation condition for drawing occupancies ### Removed - Setters for initial and final time step in predictions diff --git a/commonroad/visualization/mp_renderer.py b/commonroad/visualization/mp_renderer.py index fe9b0308..1236ccce 100644 --- a/commonroad/visualization/mp_renderer.py +++ b/commonroad/visualization/mp_renderer.py @@ -598,7 +598,7 @@ def draw_dynamic_obstacle( self._draw_signal_state(sig, veh_occ, draw_params.signals) # draw occupancies - if draw_occupancies and isinstance(obj.prediction, commonroad.prediction.prediction.SetBasedPrediction): + if draw_occupancies or isinstance(obj.prediction, commonroad.prediction.prediction.SetBasedPrediction): if draw_shape: # occupancy already plotted time_begin_occ = time_begin + 1