mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 07:42:38 +08:00
fix _renderFlags after scene restored (#3193)
This commit is contained in:
@@ -2978,7 +2978,7 @@ var Node = cc.Class({
|
||||
}
|
||||
},
|
||||
|
||||
_restoreProperties () {
|
||||
_restoreProperties: CC_EDITOR && function () {
|
||||
/*
|
||||
* TODO: Refine this code after completing undo/redo 2.0.
|
||||
* The node will be destroyed when deleting in the editor,
|
||||
@@ -3004,6 +3004,10 @@ var Node = cc.Class({
|
||||
this._renderComponent.disableRender();
|
||||
}
|
||||
}
|
||||
|
||||
if (this._children.length > 0) {
|
||||
this._renderFlag |= RenderFlow.FLAG_CHILDREN;
|
||||
}
|
||||
},
|
||||
|
||||
onRestore: CC_EDITOR && function () {
|
||||
|
||||
Reference in New Issue
Block a user