Fix director.root not initialized in splash image (#6006)

This commit is contained in:
pandamicro
2019-12-30 17:50:59 +08:00
committed by GitHub
parent 5d0506b443
commit f9f7171c4c
+4 -5
View File
@@ -581,7 +581,6 @@ export class Game extends EventTarget {
if (cb) { cb(); }
};
// Init engine
this._initEngine(start);
}
@@ -595,6 +594,10 @@ export class Game extends EventTarget {
this._initEvents();
}
// Log engine version
console.log('Cocos Creator 3D v' + cc.ENGINE_VERSION);
this.emit(Game.EVENT_ENGINE_INITED);
// load renderpipeline
let config = this.config;
cc.loader.load({ uuid: config.renderPipeline }, (err, asset) => {
@@ -620,10 +623,6 @@ export class Game extends EventTarget {
cb && cb();
}
});
// Log engine version
console.log('Cocos Creator 3D v' + cc.ENGINE_VERSION);
this.emit(Game.EVENT_ENGINE_INITED);
}
// @Methods