Now traffic lights can be spawned without controllers inside junctions.

This commit is contained in:
Axel 2021-06-01 17:43:56 +02:00 committed by bernat
parent 11c785e288
commit 3b8fda28db
1 changed files with 0 additions and 1 deletions

View File

@ -429,7 +429,6 @@ void ATrafficLightManager::SpawnTrafficLights()
const auto& SignalId = SignalPair.first;
const auto& Signal = SignalPair.second;
if(!Signal->GetControllers().size() &&
!GetMap()->IsJunction(Signal->GetRoadId()) &&
carla::road::SignalType::IsTrafficLight(Signal->GetType()) &&
!SignalsToSpawn.count(SignalId))
{