Skip to content

Commit

Permalink
Merge pull request #223 from anatawa12/fix-remove-mesh-in-box-add-box…
Browse files Browse the repository at this point in the history
…-size

fix: first box will be size of zero
  • Loading branch information
anatawa12 authored Jun 13, 2023
2 parents a8685f6 + 2a51fe0 commit 5015c03
Show file tree
Hide file tree
Showing 3 changed files with 7 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
- Dropping PhysBone to MergePhysBone is not working `#221`
- First box will be size of zero `#223`

### Security

Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.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
- Dropping PhysBone to MergePhysBone is not working `#221`
- First box will be size of zero `#223`

### Security

Expand Down
5 changes: 5 additions & 0 deletions Runtime/RemoveMeshInBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ internal class RemoveMeshInBox : EditSkinnedMeshComponent
[Obsolete("legacy v2", true)]
public BoundingBoxList boxList = new BoundingBoxList();

private void Reset()
{
boxes = new[] { new BoundingBox() };
}

[Serializable]
public class BoundingBox
{
Expand Down

0 comments on commit 5015c03

Please sign in to comment.