ousnius / BodySlide-and-Outfit-Studio

BodySlide and Outfit Studio, a tool to convert, create, and customize outfits and bodies for Bethesda games.
GNU General Public License v3.0
290 stars 64 forks source link

Fix shape attributes #413

Closed daz001 closed 2 years ago

daz001 commented 2 years ago

Reference issue: https://github.com/ousnius/BodySlide-and-Outfit-Studio/issues/412

DeleteShape is being called from LoadProject when clearing the project and at this point, the sliderset with valid shapeattributes has already been loaded and baseshape has been set. So when DeleteShape is called, it clears the required shape attribute.

The addition of DeleteShapeAttribute to DeleteShape was a little too dangerous to fix the shape attribute issue as it caused the above regression, so I've swapped it for a less risky fix of simply updating the existing shape attribute data when merging the slider set. At this point, it's likely that any old shape would have either been deleted or renamed and have little use for the prior target shape that may be on the old shapeAttribute.