mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-07 03:52:41 +08:00
@@ -395,6 +395,10 @@ Node *Node::getChildByPath(const ccstd::string &path) const {
|
||||
|
||||
//
|
||||
void Node::setPositionInternal(float x, float y, float z, bool calledFromJS) {
|
||||
if (_localPosition.approxEquals({x, y, z})) {
|
||||
return;
|
||||
}
|
||||
|
||||
_localPosition.set(x, y, z);
|
||||
invalidateChildren(TransformBit::POSITION);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user