Rebase to main and update migration guide
This commit is contained in:
parent
174320aa65
commit
64fa07b473
@ -1407,13 +1407,13 @@ impl MeshDeserializer {
|
||||
/// Error that can occur when calling [`Mesh::merge`].
|
||||
#[derive(Error, Debug, Clone)]
|
||||
pub enum MeshMergeError {
|
||||
#[error("Incompatible vertex attribute types {} and {}", self_attribute.name, other_attribute.map(|a| a.name).unwrap_or("None"))]
|
||||
#[error("Incompatible vertex attribute types: {} and {}", self_attribute.name, other_attribute.map(|a| a.name).unwrap_or("None"))]
|
||||
IncompatibleVertexAttributes {
|
||||
self_attribute: MeshVertexAttribute,
|
||||
other_attribute: Option<MeshVertexAttribute>,
|
||||
},
|
||||
#[error(
|
||||
"Incompatible primitive topologies {:?} and {:?}",
|
||||
"Incompatible primitive topologies: {:?} and {:?}",
|
||||
self_primitive_topology,
|
||||
other_primitive_topology
|
||||
)]
|
||||
|
10
release-content/migration-guides/rework_merge_mesh_error.md
Normal file
10
release-content/migration-guides/rework_merge_mesh_error.md
Normal file
@ -0,0 +1,10 @@
|
||||
---
|
||||
title: Rework `MergeMeshError`
|
||||
pull_requests: [18561]
|
||||
---
|
||||
|
||||
`MergeMeshError` was reworked to account for the possibility of the meshes being merged having two different `PrimitiveTopology`'s, and was renamed to `MeshMergeError` to align with the naming of other mesh errors.
|
||||
|
||||
- Users will need to rename `MergeMeshError` to `MeshMergeError`
|
||||
- When handling `MergeMeshError` (now `MeshMergeError`), users will need to account for the new `IncompatiblePrimitiveTopology` variant, as it has been changed from a struct to an enum
|
||||
- `Mesh::merge` now returns `Result<(), MeshMergeError>` instead of the previous `Result<(), MergeMeshError>`
|
Loading…
Reference in New Issue
Block a user