wiremod / wire

Garry's Mod add-on that allows users to wire up components in order to make more elaborate automatic and user-controlled contraptions.
http://www.wiremod.com
Apache License 2.0
549 stars 333 forks source link

EGP Parented Lines on HUD not rendering correctly #2981

Closed alexswad closed 1 week ago

alexswad commented 7 months ago

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

Denneisk commented 4 months ago

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.