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

Other than position is nullable #1715

Merged
merged 1 commit into from Jun 28, 2022

Conversation

ousttrue
Copy link
Contributor

@ousttrue ousttrue commented Jun 24, 2022

fixed #1692
position 以外の頂点属性は nullable であることに対応

@ousttrue ousttrue requested a review from Santarh June 24, 2022 10:55
@ousttrue ousttrue added this to the v0.101 milestone Jun 28, 2022
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.

LGTM ですが、1点確認

var normals = mesh.VertexBuffer.Normals?.Bytes.Reinterpret<Vector3>(1) ?? default;
var texCoords = mesh.VertexBuffer.TexCoords?.Bytes.Reinterpret<Vector2>(1) ?? default;
var weights = mesh.VertexBuffer.Weights?.GetAsVector4Array() ?? default;
var joints = mesh.VertexBuffer.Joints?.GetAsSkinJointsArray() ?? default;
Copy link
Contributor

Choose a reason for hiding this comment

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

meshGroup.Skine != null という判定文が消えていますが、それは大丈夫ですか?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

meshGroup.Skin の有無と mesh.VertexBuffer.Weights/Joints の有無が同じになるぽいので大丈夫

@ousttrue ousttrue merged commit 045c690 into vrm-c:master Jun 28, 2022
@ousttrue ousttrue deleted the fix10/vertex_attribute_nullable branch January 24, 2024 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

特定のVRM1 BetaモデルインポートでNullReferenceExceptionが発生
2 participants