fix AnchorLayout making targets not ignore anchor point for position

This commit is contained in:
HJfod 2024-02-27 23:32:03 +02:00
parent 055f05ca55
commit 547c0474db

View file

@ -55,7 +55,7 @@ void AnchorLayout::apply(CCNode* on) {
case Anchor::BottomLeft: pos += ccp(0, 0); break;
case Anchor::Left: pos += ccp(0, size.height / 2); break;
}
node->ignoreAnchorPointForPosition(false);
// node->ignoreAnchorPointForPosition(false);
node->setPosition(pos);
}
}