Now traffic lights can be spawned without controllers inside junctions.
This commit is contained in:
parent
11c785e288
commit
3b8fda28db
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue