mirror of
https://github.com/open-goal/jak-project
synced 2026-06-24 09:51:29 -04:00
decompiler: support animation export and support master art groups in build-actor tool (#4260)
Adds support for exporting animations for foreground models. It's not perfect and doesn't handle the Jak 2/3 animations very well in some cases (scale can often get messed up, especially for the LZO compressed ones, I have no idea what is going on with the data in those art groups sometimes, so that'll have to be revisited later...), but it does a decent job on Jak 1. Additionally, the `build-actor` tool has also been changed to support setting the `master-art-group-name` and `master-art-group-index` fields to allow for custom art groups to link their animations to a different master art group, which lets you add custom animations to vanilla art groups.
This commit is contained in:
@@ -160,7 +160,11 @@ goos::Object MakeSystem::handle_defstep(const goos::Object& form,
|
||||
if (in.is_pair()) {
|
||||
step->input.clear();
|
||||
goos::for_each_in_list(in, [&](const goos::Object& o) {
|
||||
step->input.push_back(m_path_map.apply_remaps(o.as_string()->data));
|
||||
if (o.type == goos::ObjectType::STRING) {
|
||||
step->input.push_back(m_path_map.apply_remaps(o.as_string()->data));
|
||||
} else {
|
||||
step->input.push_back(m_path_map.apply_remaps(o.print()));
|
||||
}
|
||||
});
|
||||
} else {
|
||||
step->input = {m_path_map.apply_remaps(in.as_string()->data)};
|
||||
|
||||
Reference in New Issue
Block a user