-
Notifications
You must be signed in to change notification settings - Fork 439
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
fix mesh == null #1020
fix mesh == null #1020
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
glTFExporter 自体は、適さない入力に対してはなるべく例外を吐きたい気がするが、LGTM
@@ -164,7 +164,12 @@ static glTFNode ExportNode(Transform x, List<Transform> nodes, List<MeshExportIn | |||
{ | |||
node.mesh = meshIndex; | |||
} | |||
else if (mesh != null && !mesh.vertices.Any()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mesh は存在するが、頂点数が 0
@@ -164,7 +164,12 @@ static glTFNode ExportNode(Transform x, List<Transform> nodes, List<MeshExportIn | |||
{ | |||
node.mesh = meshIndex; | |||
} | |||
else if (mesh != null && !mesh.vertices.Any()) | |||
else if (mesh == null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
メッシュが存在しない
// mesh が無い | ||
node.mesh = -1; | ||
} | ||
else if (mesh.vertexCount == 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
メッシュは存在するが、頂点数が 0
Validator で Error になるものは |
merge したつもりで、間違えて close してた |
|
#1016