pub struct CachedPartData {Show 16 fields
pub part_index: i16,
pub parent_index: i16,
pub coverage: UpdateAttributeFlags,
pub name_hash: u32,
pub key_mask: u64,
pub cursor_base: u32,
pub constant_mask: u64,
pub shape_kind: Option<ShapeType>,
pub nines: Option<NinesPartData>,
pub mesh_binding: Option<Arc<MeshBindingCache>>,
pub mesh_cell: Option<Arc<MeshCellData>>,
pub blend_type: BlendType,
pub part_type_disc: PartType,
pub mask_influence: bool,
pub is_mask_contributor: bool,
pub runs: Box<[KeyRun]>,
}Fields§
§part_index: i16§parent_index: i16§coverage: UpdateAttributeFlagsWhich continuous attributes (MIXED_ATTRIBUTES) this animation actually
keys on this part. Decided per animation (the run exists at all),
never per frame — a per-frame signal would flip at the first key and
make the part pop in and out of the mix mid-playback.
The mix consults this to keep a source that does not animate an
attribute from voting evaluate_part’s hardcoded default into the
weighted sum. Note the converter seeds every animation with the setup
pose, so “has a run” means “authored by the animator or by the
setup pose” — both are real poses, and only the genuinely absent case
is excluded.
name_hash: u32fnv1a_hash_str(PartData.name), cached for the Override Layer’s
name -> part_index resolver. Stable within an SSAB (part identity is
AnimationPack-scoped and 1:1 with parts_animation_data).
key_mask: u64One bit per attribute this part has keys for, at the attribute’s
IDX_ATTRIBUTE* position. An instance keeps a key cursor for each of
these attributes only, in bit order (see cursor_slot).
cursor_base: u32Where this part’s key cursors start in an instance’s cursor buffer: the number of cursors every earlier part of the animation keeps.
constant_mask: u64The keyed attributes that read the same on every frame of the
animation — a run of one key, which the animation reaches at its start
— as key_mask bits. They are evaluated once, into
the animation’s part bases, rather than on every frame.
shape_kind: Option<ShapeType>§nines: Option<NinesPartData>§mesh_binding: Option<Arc<MeshBindingCache>>§mesh_cell: Option<Arc<MeshCellData>>§blend_type: BlendType§part_type_disc: PartType§mask_influence: bool§is_mask_contributor: bool§runs: Box<[KeyRun]>The key runs of the attributes in key_mask, in bit
order: attribute idx is runs[cursor_slot(key_mask, idx)], the same
packing as an instance’s cursors. A part keys a handful of its
attributes, so this holds a few runs. Read one with run.