Decompile fn_17480 (C3dActorV2::Assign)
Batch #8474 by SapitoSucio: 0 byte-identical, 1 confirmed by peer review. - fn_17480 C3dActorV2::Assign: logic confirmed by peer review Peer-reviewed-by: Yommy, dori Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
546ba4ad22
commit
402041a79d
1 changed files with 6 additions and 4 deletions
|
|
@ -81,12 +81,14 @@ void C3dActorV2::Assign(const C3dModelRes& resource) {
|
|||
const int milliseconds = 1000 * modern.animationLength;
|
||||
this->duration = static_cast<float>(milliseconds) * inverse;
|
||||
|
||||
for (const std::string& name : resource.rootNames) {
|
||||
auto* roots = &this->roots;
|
||||
resource.ForEachRootName([&resource, roots, this](const std::string& name) {
|
||||
ModelNode* source = resource.FindNode(name.c_str());
|
||||
auto* root = new C3dNodeV2;
|
||||
root->model = this;
|
||||
root->Initialize(*resource.FindNode(name.c_str()));
|
||||
this->roots.push_back(root);
|
||||
}
|
||||
root->Initialize(*source);
|
||||
roots->push_back(root);
|
||||
});
|
||||
|
||||
this->Animate(0);
|
||||
this->UpdateBounds();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue