mirror of
https://github.com/zeldaret/tww.git
synced 2026-05-30 00:46:29 -04:00
27 lines
725 B
C++
27 lines
725 B
C++
//
|
|
// Generated by dtk
|
|
// Translation Unit: d_a_branch_static.cpp
|
|
//
|
|
|
|
#include "d/actor/d_a_branch.h"
|
|
#include "dolphin/types.h"
|
|
#include "JSystem/JUtility/JUTAssert.h"
|
|
|
|
/* 80068510-800685F8 .text getJointMtx__10daBranch_cFPCc */
|
|
MtxP daBranch_c::getJointMtx(const char* jointName) {
|
|
JUT_ASSERT(22, mModel[0] != NULL);
|
|
JUTNameTab* nameTable = mModel[0]->getModelData()->getJointName();
|
|
u16 jointNum = mModel[0]->getModelData()->getJointNum();
|
|
if (nameTable == NULL || jointNum == 0) {
|
|
return NULL;
|
|
}
|
|
|
|
for (u16 i = 0; i < jointNum; i++) {
|
|
if (strcmp(nameTable->getName(i), jointName) == 0) {
|
|
return mModel[0]->getAnmMtx(i);
|
|
}
|
|
}
|
|
|
|
return NULL;
|
|
}
|