kamrann / KantanDocGenPlugin

UE4 editor plugin for generating documentation of both Blueprints and Blueprint-exposed C++ classes
Mozilla Public License 2.0
126 stars 42 forks source link

Plugin crushes with 4.25.1 #5

Closed gribuser closed 4 years ago

gribuser commented 4 years ago

FNodeDocsGenerator::GenerateNodeImage() fails with exeption "Access violation writing location 0x0000000000000000" inside RTResource->ReadPixelsPtr(PixelData->Pixels.GetData(), ReadPixelFlags, Rect) call. PixelData->Pixels.GetData() is NULL in 4.25, so in FRenderTarget::ReadPixelsPtr OutImageBytes is NULL with kind of predictable outeome.

I'm not sure if this fix is good enough, but at least it works now.

kamrann commented 4 years ago

Looks good to me. I updated for 4.25 so it compiled but didn't have time to test it out. Thanks!