mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 00:22:43 +08:00
@@ -467,7 +467,12 @@ var Node = cc.Class({
|
||||
if (! (component instanceof cc.Component) && CC_EDITOR) {
|
||||
cc.error('Sorry, the component of entity "%s" which with an index of %s is corrupted! It has been removed.\nSee DevTools for details.', this.name, c);
|
||||
console.log('Corrupted component value:', component);
|
||||
this._removeComponent(component);
|
||||
if (component) {
|
||||
this._removeComponent(component);
|
||||
}
|
||||
else {
|
||||
this._components.splice(c, 1);
|
||||
}
|
||||
--c;
|
||||
--originCount;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user