shadowscion / Prop2Mesh

Garry's Mod Addon - Convert a group of props into a single clientside mesh
14 stars 8 forks source link

Removing a controller while entity was selected caused NULL entity error alongside all entities becoming wireframe #11

Closed CheezusChrust closed 4 years ago

CheezusChrust commented 4 years ago

Posting this on behalf of someone else - they were messing with Prop2Mesh, and they deleted a p2m controller while an entity was selected. All non-world entities became wireframe and they began getting the following error in their console.

Player [6][OneEaredNeko] ERR: [prop2mesh] addons/prop2mesh/lua/p2m/editor.lua:97: Tried to use a NULL entity!
  1. LocalToWorld - [C]:-1
   2. v - addons/prop2mesh/lua/p2m/editor.lua:97
    3. unknown - lua/includes/modules/hook.lua:84 (x5)

image

shadowscion commented 4 years ago

selected in what?

CheezusChrust commented 4 years ago

Right clicking a Prop2Mesh controller, right clicking an entity to select it to be meshed, and then removing said controller while the entity(s) are selected caused the error.

shadowscion commented 4 years ago

Doesn't seem right, entities have nothing to do with the editor, and I can't reproduce it.

CheezusChrust commented 4 years ago

Closing because I determined an ancient third person addon was causing this, having props selected at the time of the bug was coincidental.