mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
fix scene reloading (#2660)
This commit is contained in:
@@ -510,7 +510,9 @@ var Component = cc.Class({
|
||||
this.node._removeComponent(this);
|
||||
|
||||
if (CC_EDITOR || CC_TEST) {
|
||||
delete cc.engine.attachedObjsForEditor[this._id];
|
||||
if (cc.engine.attachedObjsForEditor[this._id] === this) { // temporarily fix
|
||||
delete cc.engine.attachedObjsForEditor[this._id];
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user