Skip to content

Commit

Permalink
Merge pull request #615 from anatawa12/read-write-mesh-off-support
Browse files Browse the repository at this point in the history
chore: remove mesh not readable error

Since we create Mesh instead if instantiate, R/W mesh is no longer required.
  • Loading branch information
anatawa12 authored Oct 17, 2023
2 parents f288ab5 + 67e06ca commit f4c19ea
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG-PRERELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ The format is based on [Keep a Changelog].
### Deprecated

### Removed
- Error for Read/Write Mesh off Mesh `#615`
- Since AAO creates Mesh every time, no more error is required!

### Fixed
- BindPose Optimization may break mesh with scale 0 bone `#612`
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ The format is based on [Keep a Changelog].
### Deprecated

### Removed
- Error for Read/Write Mesh off Mesh `#615`
- Since AAO creates Mesh every time, no more error is required!

### Fixed
- Multi-frame BlendShape can be broken `#601`
Expand Down
10 changes: 0 additions & 10 deletions Editor/Processors/SkinnedMeshes/MeshInfo2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@ public MeshInfo2(SkinnedMeshRenderer renderer)
{
SourceRenderer = renderer;
var mesh = renderer.sharedMesh;
if (mesh && !mesh.isReadable)
{
BuildReport.LogFatal("The Mesh is not readable. Please Check Read/Write")?.WithContext(mesh);
return;
}

BuildReport.ReportingObject(renderer, true, () =>
{
Expand Down Expand Up @@ -79,11 +74,6 @@ public MeshInfo2(MeshRenderer renderer)
{
var meshFilter = renderer.GetComponent<MeshFilter>();
var mesh = meshFilter ? meshFilter.sharedMesh : null;
if (mesh && !mesh.isReadable)
{
BuildReport.LogFatal("The Mesh is not readable. Please Check Read/Write")?.WithContext(mesh);
return;
}
if (mesh)
ReadStaticMesh(mesh);

Expand Down

0 comments on commit f4c19ea

Please sign in to comment.