Bugfix: Pixel data not set correctly will crash when saving pixels to disk (#6235)
This commit is contained in:
parent
8d8d53c3e5
commit
fba921c03a
|
@ -11,6 +11,7 @@
|
||||||
* `start_replaying.py` using flag `--move-spectator`
|
* `start_replaying.py` using flag `--move-spectator`
|
||||||
* Added maps, vehicles, pedestrians and props catalogues to the documentation
|
* Added maps, vehicles, pedestrians and props catalogues to the documentation
|
||||||
* Add keyword arguments for `carla.TrafficManager` Python API functions
|
* Add keyword arguments for `carla.TrafficManager` Python API functions
|
||||||
|
* Fixed bug causing the `FPixelReader::SavePixelsToDisk(PixelData, FilePath)` function to crash due to pixel array not set correctly.
|
||||||
|
|
||||||
## CARLA 0.9.14
|
## CARLA 0.9.14
|
||||||
|
|
||||||
|
|
|
@ -104,6 +104,7 @@ TUniquePtr<TImagePixelData<FColor>> FPixelReader::DumpPixels(
|
||||||
{
|
{
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
PixelData->Pixels = Pixels;
|
||||||
return PixelData;
|
return PixelData;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue