diff options
| author | Jasper St. Pierre <jstpierre@mecheye.net> | 2023-09-21 23:26:10 -0700 |
|---|---|---|
| committer | Jasper St. Pierre <jstpierre@mecheye.net> | 2023-09-21 23:26:10 -0700 |
| commit | b60bf4df329ae35f00bff57ff96e8325f478d7ca (patch) | |
| tree | bfabaf29202423eb865379e2e493869f268051f5 /src/JSystem/J3DGraphAnimator/J3DNode.cpp | |
| parent | 96c226599c34a83304b2e850d77d979636e582b0 (diff) | |
J3DNode/J3DTransform progress
Diffstat (limited to 'src/JSystem/J3DGraphAnimator/J3DNode.cpp')
| -rw-r--r-- | src/JSystem/J3DGraphAnimator/J3DNode.cpp | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/JSystem/J3DGraphAnimator/J3DNode.cpp b/src/JSystem/J3DGraphAnimator/J3DNode.cpp index c44a0ee3..006aec6f 100644 --- a/src/JSystem/J3DGraphAnimator/J3DNode.cpp +++ b/src/JSystem/J3DGraphAnimator/J3DNode.cpp @@ -8,7 +8,10 @@ /* 802F5BA4-802F5BC8 .text __ct__7J3DNodeFv */ J3DNode::J3DNode() { - /* Nonmatching */ + mCallBackUserData = NULL; + mCallBack = NULL; + mChild = NULL; + mYounger = NULL; } /* 802F5BC8-802F5C10 .text __dt__7J3DNodeFv */ @@ -17,8 +20,16 @@ J3DNode::~J3DNode() { } /* 802F5C10-802F5C44 .text appendChild__7J3DNodeFP7J3DNode */ -void J3DNode::appendChild(J3DNode*) { - /* Nonmatching */ +void J3DNode::appendChild(J3DNode* pChild) { + if (mChild == NULL) { + mChild = pChild; + } else { + J3DNode* curChild = mChild; + while (curChild->getYounger() != NULL) { + curChild = curChild->getYounger(); + } + curChild->setYounger(pChild); + } } /* 802F5C44-802F5C48 .text entryIn__7J3DNodeFv */ |
