transform should become dirty if hierarchy changed

This commit is contained in:
Jare Guo
2016-04-07 11:35:18 +08:00
parent 91113f83c9
commit 235087203f
+1
View File
@@ -867,6 +867,7 @@ _ccsg.Node = cc.Class({
*/
setParent: function (parent) {
this._parent = parent;
this._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.transformDirty);
},
/**