mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 00:22:43 +08:00
fix modelcomponent attach scene bug (#6056)
This commit is contained in:
@@ -177,7 +177,7 @@ export class ModelComponent extends RenderableComponent {
|
||||
}
|
||||
|
||||
protected _attachToScene () {
|
||||
if (!this.node.scene && !this._model) {
|
||||
if (!this.node.scene || !this._model) {
|
||||
return;
|
||||
}
|
||||
const scene = this._getRenderScene();
|
||||
|
||||
Reference in New Issue
Block a user