wiremod/wire

EGP Parented Lines on HUD not rendering correctly

alexswad opened this issue · 1 comments

Describe the bug
Parented lines on EGP HUDs don't render correctly, after more testing I see the line pop on the middle of my screen before disappearing. It sometimes happen on screens randomly

To Reproduce
Run this code with an EGP screen and HUD and notice the difference

@inputs EGP:wirelink

if (~EGP & EGP) {
    EGP:egpClear()
    EGP:egpCircle(3, vec2(200, 200), vec2(50, 50))
    EGP:egpColor(3, vec(255, 0, 0))
            
    EGP:egpLine(4, vec2(-20, 20), vec2(20, -20))
    EGP:egpSize(4, 5)
    EGP:egpParent(4, 3)
}

Expected behavior
Screenshot taken from Wiremod from 2022
gmod_LoPBoY4dwZ

Observed behavior
Taken from most recent version
gmod_Otu1BJ9XXR

image

Do you mind testing this and seeing if it still happens on the latest Github version? I just tested this again and it seems to work as expected.