-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mesh::merge to return a Result (#17475)
# Objective Make `Mesh::merge` more resilient to use. Currently, it's difficult to make sure `Mesh::merge` will not panic (we'd have to check if all attributes are compatible). - I'd appreciate it for utility function to convert different mesh representations such as: dimforge/bevy_rapier#628. ## Solution - Make `Mesh::merge` return a `Result`. ## Testing - It builds ## Migration Guide - `Mesh::merge` now returns a `Result<(), MeshMergeError>`. --------- Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com> Co-authored-by: Greeble <166992735+greeble-dev@users.noreply.github.com> Co-authored-by: Benjamin Brienen <benjamin.brienen@outlook.com>
- Loading branch information
1 parent
9387fcf
commit fd2afee
Showing
2 changed files
with
34 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters