Skip to content

Commit

Permalink
Merge pull request #746 from anatawa12/fix-animation-warning-with-mea…
Browse files Browse the repository at this point in the history
…ningless

fix: freeze meaningless may cause `FreezeBlendShape:warning:animation`
  • Loading branch information
anatawa12 authored Nov 25, 2023
2 parents b8b5d49 + 2afd2b2 commit a919c1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG-PRERELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ The format is based on [Keep a Changelog].

### Fixed
- MergeBone breaks `ignoreTransforms` of PhysBone `#745`
- freeze meaningless may cause `FreezeBlendShape:warning:animation` warning `#746`

### Security

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ public override void Process(BuildContext context, MeshInfo2 target)
foreach (var vertex in target.Vertices)
meaninglessBlendShapes.ExceptWith(vertex.BlendShapes.Keys);

foreach (var meaninglessBlendShape in meaninglessBlendShapes)
context.RecordRemoveProperty(Target, $"blendShape.{meaninglessBlendShape}");

var freezeBlendShape = Target.GetComponent<FreezeBlendShape>();
var set = freezeBlendShape.shapeKeysSet.GetAsSet();
set.UnionWith(meaninglessBlendShapes);
Expand Down

0 comments on commit a919c1f

Please sign in to comment.