Skip to content

Commit

Permalink
fix: blendshape blocking UI if blendshape not selected
Browse files Browse the repository at this point in the history
  • Loading branch information
poi-vrc committed Sep 1, 2023
1 parent f7a24b6 commit d277cdb
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,6 @@ private void UpdateBlendshapes(Transform root, List<AnimationBlendshapeValue> bl
blendshapeData.availableBlendshapeNames = GetBlendshapeNames(newMesh);
blendshapeData.selectedBlendshapeIndex = 0;
blendshapeData.value = 0;
blendshapeData.isInvalid = true;
// blendshape.blendshapeName = blendshapeData.availableBlendshapeNames[blendshapeData.selectedBlendshapeIndex];
// blendshape.value = blendshapeData.value;
Expand Down Expand Up @@ -463,8 +462,7 @@ private void UpdateToggleAndSmrSuggestions(Transform root, List<AnimationToggle>
toggleSuggestions.Add(toggleSuggestion);
}

if (childTrans.TryGetComponent<SkinnedMeshRenderer>(out _) &&
!IsGameObjectUsedInBlendshapes(childTrans.gameObject, blendshapes))
if (childTrans.TryGetComponent<SkinnedMeshRenderer>(out _))
{
var smrSuggestion = new SmrSuggestionData
{
Expand Down

0 comments on commit d277cdb

Please sign in to comment.