diff options
Diffstat (limited to 'include/m')
| -rw-r--r-- | include/m/m3d/m_anmmatclr.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/m/m3d/m_anmmatclr.h b/include/m/m3d/m_anmmatclr.h index 819e3ba2..071d983c 100644 --- a/include/m/m3d/m_anmmatclr.h +++ b/include/m/m3d/m_anmmatclr.h @@ -4,6 +4,7 @@ #include "m/m3d/m_bmdl.h" #include "m/m3d/m_fanm.h" #include "nw4r/g3d/g3d_anmclr.h" +#include "nw4r/g3d/g3d_scnobj.h" namespace m3d { @@ -48,6 +49,10 @@ public: void setFrameStart(f32, s32); f32 getFrameStart(s32) const; + nw4r::g3d::AnmObjMatClrRes *getChild(s32 idx) { + return nw4r::g3d::ScnObj::DynamicCast<nw4r::g3d::AnmObjMatClrRes>(mpChildren[idx].getAnimObj()); + } + private: child_c *mpChildren; }; |
