diff --git a/include/JSystem/J3DGraphBase/J3DTransform.h b/include/JSystem/J3DGraphBase/J3DTransform.h index 384e91190..2260bb6e1 100644 --- a/include/JSystem/J3DGraphBase/J3DTransform.h +++ b/include/JSystem/J3DGraphBase/J3DTransform.h @@ -6,10 +6,23 @@ struct J3DTextureSRTInfo; +// struct J3DTransformInfo { +// /* 0x00 */ JGeometry::TVec3 mScale; +// /* 0x0C */ JGeometry::TVec3 mRotation; +// /* 0x14 */ JGeometry::TVec3 mTranslate; +// }; // Size: 0x20 + +// I doubt this is right but it seems like the only way to prevent an empty ctor being added on array construction struct J3DTransformInfo { - /* 0x00 */ JGeometry::TVec3 mScale; + /* 0x00 */ Vec mScale; /* 0x0C */ JGeometry::TVec3 mRotation; - /* 0x14 */ JGeometry::TVec3 mTranslate; + /* 0x14 */ Vec mTranslate; + inline J3DTransformInfo& operator=(const J3DTransformInfo& b) { + mScale = b.mScale; + mRotation = b.mRotation; + mTranslate = b.mTranslate; + return *this; + } }; // Size: 0x20 extern J3DTransformInfo const j3dDefaultTransformInfo; diff --git a/src/m_Do/m_Do_ext.cpp b/src/m_Do/m_Do_ext.cpp index 041d0af5e..c694a9fdb 100644 --- a/src/m_Do/m_Do_ext.cpp +++ b/src/m_Do/m_Do_ext.cpp @@ -1152,7 +1152,6 @@ void mDoExt_MtxCalcOldFrame::decOldFrameMorfCounter() { /* 80012650-800129E4 .text __ct__14mDoExt_McaMorfFP12J3DModelDataP25mDoExt_McaMorfCallBack1_cP25mDoExt_McaMorfCallBack2_cP15J3DAnmTransformifiiiPvUlUl */ mDoExt_McaMorf::mDoExt_McaMorf(J3DModelData* modelData, mDoExt_McaMorfCallBack1_c* callback1, mDoExt_McaMorfCallBack2_c* callback2, J3DAnmTransform* anmTransform, int param_4, f32 param_5, int param_6, int param_7, int param_8, void* param_9, u32 param_10, u32 param_11) { - /* Nonmatching - JGeometry::TVec3 ctor */ mpModel = NULL; mpSound = NULL; mpTransformInfo = NULL; @@ -1510,10 +1509,10 @@ void mDoExt_3DlineMat1_c::update(u16, _GXColor&, dKy_tevstr_c*) { JUT_ASSERT(5243, size_p != 0); } -/* 80016518-8001657C .text setMat__26mDoExt_3DlineMatSortPacketFP18mDoExt_3DlineMat_c */ -void mDoExt_3DlineMatSortPacket::setMat(mDoExt_3DlineMat_c*) { - /* Nonmatching */ -} +// /* 80016518-8001657C .text setMat__26mDoExt_3DlineMatSortPacketFP18mDoExt_3DlineMat_c */ +// void mDoExt_3DlineMatSortPacket::setMat(mDoExt_3DlineMat_c*) { +// /* Nonmatching */ +// } /* 8001657C-800165E4 .text draw__26mDoExt_3DlineMatSortPacketFv */ void mDoExt_3DlineMatSortPacket::draw() {