Removed check to force sendStream

This commit is contained in:
doterop 2020-07-30 20:40:44 +02:00 committed by bernat
parent dea15ec319
commit 1cddd05f8e
1 changed files with 6 additions and 9 deletions

View File

@ -279,17 +279,14 @@ public:
template <typename TSensor>
void SendPixelsInStream(TSensor &Sensor, const TArray<FColor>& AtlasImage, uint32 AtlasTextureWidth)
{
if (Sensor.HasActorBegunPlay() && !Sensor.IsPendingKill()) {
auto Stream = GetDataStream(Sensor);
carla::Buffer Buffer = Stream.PopBufferFromPool();
auto Stream = GetDataStream(Sensor);
carla::Buffer Buffer = Stream.PopBufferFromPool();
CopyTextureFromAtlas(Buffer, AtlasImage, AtlasTextureWidth);
CopyTextureFromAtlas(Buffer, AtlasImage, AtlasTextureWidth);
{
SCOPE_CYCLE_COUNTER(STAT_CarlaSensorStreamSend);
Stream.Send(Sensor, std::move(Buffer));
}
{
SCOPE_CYCLE_COUNTER(STAT_CarlaSensorStreamSend);
Stream.Send(Sensor, std::move(Buffer));
}
}