#[non_exhaustive]pub enum StaticMeshBakeError {
Show 18 variants
NoInstances,
MeshInstanceCount {
mesh: usize,
source_mesh_index: usize,
instances: usize,
},
MissingMesh {
source_node_index: usize,
mesh: usize,
},
MissingNode {
source_node_index: usize,
node: usize,
},
DuplicateNodeAttachment {
source_node_index: usize,
},
DuplicateSkeletonNodeAttachment {
node: usize,
},
AnimationTrack {
clip: String,
node: usize,
property: &'static str,
},
SkeletonSkin {
node: usize,
},
SkinnedInstance {
source_node_index: usize,
},
SkinnedPrimitive {
mesh: usize,
primitive: usize,
},
InvalidParent {
node: usize,
parent: usize,
},
NonFiniteTransform {
node: usize,
},
InvalidPrimitive {
mesh: usize,
primitive: usize,
reason: &'static str,
},
NonFiniteMaterial {
material: usize,
factor: &'static str,
},
NonFiniteAttribute {
mesh: usize,
primitive: usize,
attribute: &'static str,
vertex: usize,
},
ZeroNormal {
mesh: usize,
primitive: usize,
vertex: usize,
},
SingularTransform {
source_node_index: usize,
determinant: f32,
},
ReflectionTransform {
source_node_index: usize,
determinant: f32,
},
}Expand description
Rejection reason returned by bake_static_mesh_transforms.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NoInstances
The input carries no mesh-node attachments to bake.
MeshInstanceCount
An input mesh definition is not attached to exactly one mesh node.
Fields
mesh: usizeOrdinal in SceneAssets::meshes.
MissingMesh
A mesh instance references a mesh definition that does not exist.
Fields
MissingNode
A mesh instance references a skeleton node that does not exist.
Fields
DuplicateNodeAttachment
More than one model instance claims one source mesh node.
DuplicateSkeletonNodeAttachment
More than one model instance attaches a mesh to one internal skeleton node.
AnimationTrack
The input contains animation data, which a static-only bake cannot retain.
Fields
SkeletonSkin
A skeleton carries inverse-bind data, indicating a skin domain.
SkinnedInstance
A mesh instance carries skin joints or inverse bind matrices.
SkinnedPrimitive
A primitive carries skin vertex attributes.
InvalidParent
A skeleton parent is absent or is not earlier than its child.
NonFiniteTransform
A local or accumulated matrix has a non-finite component.
InvalidPrimitive
A mesh primitive has malformed attributes, indices, or material data.
Fields
NonFiniteMaterial
A material factor contains a non-finite value.
NonFiniteAttribute
A position, normal, or UV contains a non-finite component.
Fields
ZeroNormal
A normal cannot be normalized after applying the normal matrix.
Fields
SingularTransform
A linear transform is singular or too close to singular for a stable inverse transpose.
Fields
ReflectionTransform
A linear transform reverses winding, which would require changing preserved indices.
Trait Implementations§
Source§impl Debug for StaticMeshBakeError
impl Debug for StaticMeshBakeError
Source§impl Display for StaticMeshBakeError
impl Display for StaticMeshBakeError
Source§impl Error for StaticMeshBakeError
impl Error for StaticMeshBakeError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()