bevy/crates/bevy_mesh
Pnoenix f964ee1e3a
Expand MergeMeshError to include IncompatiblePrimitiveTopology variant (#18561)
# Objective

Fix #18546 by adding a variant to `MergeMeshError`, for incompatible
primitive topologies.

## Solution

Made `MergeMeshError` into an enum with two variants;
`IncompatibleVertexAttributes` and `IncompatiblePrimitiveTopology`.
Added an if statement in `Mesh::merge` to check if the
`primitive_topology` field of `self` matches `other`.
Also renamed `MergeMeshError` to `MeshMergeError` to align with the two
other `MeshSomethingError`'s.

## Testing

Didn't do any.
2025-07-16 20:37:58 +00:00
..
src Expand MergeMeshError to include IncompatiblePrimitiveTopology variant (#18561) 2025-07-16 20:37:58 +00:00
Cargo.toml remove unused dependencies (#19998) 2025-07-07 20:10:33 +00:00
LICENSE-APACHE Cleanup publish process (#17728) 2025-02-09 17:46:19 +00:00
LICENSE-MIT Cleanup publish process (#17728) 2025-02-09 17:46:19 +00:00