Bugfix: Pixel data not set correctly will crash when saving pixels to disk (#6235)

This commit is contained in:
Feej 2023-03-17 19:07:09 +08:00 committed by GitHub
parent 8d8d53c3e5
commit fba921c03a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -11,6 +11,7 @@
* `start_replaying.py` using flag `--move-spectator`
* Added maps, vehicles, pedestrians and props catalogues to the documentation
* 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

View File

@ -104,6 +104,7 @@ TUniquePtr<TImagePixelData<FColor>> FPixelReader::DumpPixels(
{
return nullptr;
}
PixelData->Pixels = Pixels;
return PixelData;
}