Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arrays size must match mesh vertex count #1759

Merged
merged 1 commit into from
Jul 29, 2022

Conversation

ousttrue
Copy link
Contributor

#1746 の修正です。

  • v0.99.3 にバックポート

@ousttrue ousttrue requested a review from Santarh July 29, 2022 06:37
@ousttrue ousttrue added this to the v0.103 milestone Jul 29, 2022
@ousttrue ousttrue mentioned this pull request Jul 29, 2022
1 task
Copy link
Contributor

@Santarh Santarh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

よさそう

bs.Normals = new Vector3[Normals.Count];
bs.Tangents = new Vector3[Tangents.Count];
bs.Normals = new Vector3[Positions.Count];
bs.Tangents = new Vector3[Positions.Count];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

こちらは単純に適切な感じへの変更

// arrays size must match mesh vertex count
var positions = new Vector3[mesh.vertexCount];
var normals = new Vector3[mesh.vertexCount];
var tangents = new Vector3[mesh.vertexCount];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

これは… Clone() しなくなってるけど、下で GetBlendShapeFrameVertices してるから実は不要だった処理なので要らないで OK、かな?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

buffer として要素数のつじつまが合っていればよいらしい。

@ousttrue ousttrue merged commit 64c73b7 into vrm-c:master Jul 29, 2022
@ousttrue ousttrue deleted the fix/mesh_integrator branch January 24, 2024 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants