mirror of
https://github.com/bevyengine/bevy
synced 2024-12-22 02:53:07 +00:00
48ac955afd
# Objective Make it so that loading in a mesh without normals that is not a `TriangleList` succeeds. ## Solution Flat normals can only be calculated on a mesh made of triangles. Check whether the mesh is a `TriangleList` before trying to compute missing normals. ## Additional changes The panic condition in `duplicate_vertices` did not make sense to me. I moved it to `compute_flat_normals` where the algorithm would produce incorrect results if the mesh is not a `TriangleList`. Co-authored-by: devil-ira <justthecooldude@gmail.com> |
||
---|---|---|
.. | ||
camera | ||
color | ||
mesh | ||
primitives | ||
render_graph | ||
render_phase | ||
render_resource | ||
renderer | ||
texture | ||
view | ||
lib.rs | ||
render_asset.rs | ||
render_component.rs | ||
settings.rs |