Skip to content

Commit

Permalink
Don't add default pos anim change if not found
Browse files Browse the repository at this point in the history
  • Loading branch information
PikminGuts92 committed Jan 20, 2025
1 parent 831f832 commit b6f7ebd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions core/grim/src/model/export.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1870,7 +1870,7 @@ impl GltfExporter {
]);

// TODO: Decode at earlier step...
let bone_samples = [&char_clip.full, &char_clip.one]
let bone_samples = [&char_clip.one, &char_clip.full]
.iter()
.flat_map(|cbs| cbs.decode_samples(info)
.into_iter()
Expand Down Expand Up @@ -2019,7 +2019,10 @@ impl GltfExporter {
extensions: None,
extras: Default::default()
});
} else {
}
// Don't add empty data if sample not found...
// Targets can be shared between one/full anims and split into pos/rot/scale elements
/*else {
// Add empty pos sample
let input_idx = acc_builder.add_scalar(
format!("{}_{}_translation_input", clip_name, bone_name),
Expand Down Expand Up @@ -2056,7 +2059,7 @@ impl GltfExporter {
extensions: None,
extras: Default::default()
});
}
}*/

/*let mut rotation_samples = [
bone.quat
Expand Down

0 comments on commit b6f7ebd

Please sign in to comment.