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