mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-23 16:07:52 -05:00
fix swapChildIndices not also swapping z order and order of arrival
This commit is contained in:
parent
8890901af5
commit
ba0851e4fa
1 changed files with 2 additions and 0 deletions
|
@ -10,6 +10,8 @@ USE_GEODE_NAMESPACE();
|
||||||
|
|
||||||
void CCNode::swapChildIndices(CCNode* first, CCNode* second) {
|
void CCNode::swapChildIndices(CCNode* first, CCNode* second) {
|
||||||
m_pChildren->exchangeObject(first, second);
|
m_pChildren->exchangeObject(first, second);
|
||||||
|
std::swap(first->m_nZOrder, second->m_nZOrder);
|
||||||
|
std::swap(first->m_uOrderOfArrival, second->m_uOrderOfArrival);
|
||||||
}
|
}
|
||||||
|
|
||||||
CCArray* Layout::getNodesToPosition(CCNode* on) {
|
CCArray* Layout::getNodesToPosition(CCNode* on) {
|
||||||
|
|
Loading…
Reference in a new issue