Description
commit: 0f8b04a
Adjusting slider has no effect for a baseshape (aka reference)
Also, code side question:
So I'm writing a patch for this, but I'm not sure how should it be treated.
When a project gets loaded, shapeAttribute map for its baseshape will be cleared by project->DeleteShape(). However, morphing meshes done by called OutfitProject::GetLiveVerts() and to get a target data of shape it calls ShapeToDataName() which requires shapeAttributes. So it will return an empty string so it does nothing.
And I'm not sure what is the best way to fix this.
Load slider attributes for the baseshape after project->LoadReferenceNif() to restore this map.
Put slider value for targetData rather than by ShapeToDataName() (of course this can't catch if no slider available for the baseshape)
Once unset and set as reference shape again will bring the shapeAttribute for the baseshape back.
Description commit: 0f8b04a Adjusting slider has no effect for a baseshape (aka reference)
Also, code side question: So I'm writing a patch for this, but I'm not sure how should it be treated. When a project gets loaded,
shapeAttribute
map for its baseshape will be cleared byproject->DeleteShape()
. However, morphing meshes done by calledOutfitProject::GetLiveVerts()
and to get a target data of shape it callsShapeToDataName()
which requires shapeAttributes. So it will return an empty string so it does nothing. And I'm not sure what is the best way to fix this.project->LoadReferenceNif()
to restore this map.targetData
rather than byShapeToDataName()
(of course this can't catch if no slider available for the baseshape)Once unset and set as reference shape again will bring the
shapeAttribute
for the baseshape back.How to reproduce