FCanvasLineItem doesn't draw with line thickness > 0
I'm using FCanvas and the various FCanvasItem structs to draw things to a render target. Most things work but if I try to draw a FCanvasLineItem (or FCanvasBoxItem) with a line thickness > 0 then nothing is displayed.
I'm using this code to draw them:
position, nextPosition, and canvas are all set up elsewhere. I know this code should work because if I change line.LineThickness to 0 then it does get drawn.
I've had this code in my project for a while but only just noticed thick lines aren't drawing recently. I went back and it looks like they were working in 4.13. Doing some more digging if I comment out the call to PrepareShaders on line 906 of Runtime\Engine\Private\BatchedElements.cpp in a source build of the engine then the lines do get drawn but I assume that line is doing something else important.
asked Apr 21 '17 at 05:43 PM in Bug Reports
Thank you for submitting a bug report. I have reproduced this issue and logged a report for it here https://issues.unrealengine.com/issue/UE-44448 . You can track the report's status as the issue is reviewed by our development staff. Please be aware that this issue may not be prioritized or fixed soon.
answered Apr 27 '17 at 04:41 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here