mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
Merge pull request #1188 from 2youyou2/convertToWorldSpace
fixed convertToWorldSpace return value
This commit is contained in:
@@ -1572,8 +1572,7 @@ var BaseNode = cc.Class(/** @lends cc.Node# */{
|
||||
}
|
||||
var x = nodePoint.x - this._anchorPoint.x * this._contentSize.width;
|
||||
var y = nodePoint.y - this._anchorPoint.y * this._contentSize.height;
|
||||
var worldPositionIgnoreAnchorPoint = this._sgNode.convertToWorldSpace(cc.v2(x, y));
|
||||
return worldPositionIgnoreAnchorPoint;
|
||||
return cc.v2(this._sgNode.convertToWorldSpace(cc.v2(x, y)));
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user