mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 07:42:38 +08:00
transform should become dirty if hierarchy changed
This commit is contained in:
@@ -867,6 +867,7 @@ _ccsg.Node = cc.Class({
|
||||
*/
|
||||
setParent: function (parent) {
|
||||
this._parent = parent;
|
||||
this._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.transformDirty);
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user