Facepunch / sbox-issues

176 stars 12 forks source link

Tools: GraphicsLine allocates twice #2383

Closed MuffinTastic closed 1 year ago

MuffinTastic commented 2 years ago

Describe the bug

When a GraphicsLine (or child class thereof) is created, it yells about a double allocation

To Reproduce

  1. Download repro (cut-down version of NodeGraph) https://github.com/MuffinTastic/sbox-tools-repros/tree/graphicsline-double-alloc
  2. Open the window (bug icon)
  3. Click and drag anywhere in the window to create a line
  4. Get yelled at in console

Expected behavior

No double allocs, no yelling

Media/Files

sbox-dev_ZBWaKh2CKx

Additional context

Build f0a37c

xezno commented 1 year ago

I think this was fixed at some point because I can't reproduce this (using your repository). Feel free to let me know if it's still an issue and I'll re-open this