bugfix, right side preview drawer not loading every time
This commit is contained in:
@@ -27,7 +27,7 @@ export default {
|
||||
this.resize();
|
||||
//gameEngine.setCamera(gameEngine.orthographicCamera)
|
||||
//gameEngine.setCameraOrthographic();
|
||||
await this.loadScenario();
|
||||
//await this.loadScenario();
|
||||
window.addEventListener('resize', this.resize);
|
||||
},
|
||||
|
||||
@@ -69,9 +69,9 @@ export default {
|
||||
mode(n){
|
||||
gameEngine.transformControls.setMode(n)
|
||||
},
|
||||
// async 'object.scenario'(n){
|
||||
// await this.loadScenario()
|
||||
// },
|
||||
async 'object.scenario'(n){
|
||||
await this.loadScenario()
|
||||
},
|
||||
currentObject(n){
|
||||
if (this.env == 'GameDesigner'){
|
||||
gameEngine.transformControls.attach(n.__o);
|
||||
@@ -215,7 +215,6 @@ export default {
|
||||
}
|
||||
});
|
||||
io.addEventListener('sceneSwitch', (e)=>{
|
||||
console.log(e);
|
||||
this.scenesList = [this.scenes.find(s=>s.data.id == e.scene)]
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user