shadowscion / Prop2Mesh

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

P2M legacy breaks meshes and "hides" controllers #49

Closed SnowyPR closed 1 year ago

SnowyPR commented 1 year ago

[Prop2Mesh] lua/includes/extensions/table.lua:563: attempt to index field 'val' (a number value)

  1. SortedPairsByMemberValue - lua/includes/extensions/table.lua:563
    1. RemakeTree - lua/prop2mesh/cl_editor.lua:1808
    2. unknown - lua/prop2mesh/cl_editor.lua:1588

image

it's supposed to have 5 controllers. after i meshed a p2m legacy controller, everything broke and i was unable to edit the meshes. image idk what to do, as my project can no longer be worked on

shadowscion commented 1 year ago

a dupe file would be helpful

SnowyPR commented 1 year ago

You can easily recreate it but sure, give me a moment.

SnowyPR commented 1 year ago

@shadowscion it's not the same dupe i'm working on but it seems to have the same problem when i recreated it. test mesh.txt image image

shadowscion commented 1 year ago

huh, I found out that the legacy merge function has been adding junk data for a while, but it was never a problem until I added sorting to the model list in the editor

it appears I wanted it to copy over the uv number so I stored the value temporarily, but I never got around to adding the rest