void BoneNode::removeFromChildrenListHelper(Node * child) { BoneNode* bone = dynamic_cast<BoneNode*>(child); if (nullptr != bone) { removeFromBoneList(bone); } else { SkinNode* skin = dynamic_cast<SkinNode*>(child); if (nullptr != skin) { removeFromSkinList(skin); } } }
void BoneNode::removeFromChildrenListHelper(Node * child) { BoneNode* bone = dynamic_cast<BoneNode*>(child); if (nullptr != bone) { removeFromBoneList(bone); if (bone->_isRackShow) { _rootSkeleton->_subDrawBonesDirty = true; _rootSkeleton->_subDrawBonesOrderDirty = true; } } else { SkinNode* skin = dynamic_cast<SkinNode*>(child); if (nullptr != skin) { removeFromSkinList(skin); } } }