BSP Entities lump writes "classname" and "model" keys twice on write
SamVanheer opened this issue · 0 comments
When a BSP file's entities lump is written it writes the classname
and model
keys twice. This is because it writes both all keyvalues and these keyvalues explicitly:
sledge-formats/Sledge.Formats.Bsp/Lumps/Entities.cs
Lines 157 to 170 in 72abe60
Both keyvalues are added to the list of keyvalues on load:
sledge-formats/Sledge.Formats.Bsp/Lumps/Entities.cs
Lines 124 to 136 in 72abe60
It should use one or the other to save these keyvalues. It might be better to remove the explicit keyvalue properties for classname
and model
and rely solely on the keyvalues dictionary, since users will likely have their own wrapper around this data.