mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 07:42:38 +08:00
fixing missing values causes the playground to run out (#3338)
This commit is contained in:
@@ -170,6 +170,11 @@ export default class ModelComponent extends RenderSystemActor {
|
||||
|
||||
static ShadowCastingMode = ModelShadowCastingMode;
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
this._models = [];
|
||||
}
|
||||
|
||||
onEnable() {
|
||||
for (let i = 0; i < this._models.length; ++i) {
|
||||
this.scene.addModel(this._models[i]);
|
||||
|
||||
Reference in New Issue
Block a user