mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 17:38:10 +00:00
Committing before pulling changes from ts editor changes.
This commit is contained in:
1 parent
2cc3c7e3c0
commit
2ed5978fd0
1 file changed
+13
-3
@@ -193,6 +193,7 @@ class Editor {
|
||||
|
||||
// saving state of the scene
|
||||
this.scene_file_token = null
|
||||
|
||||
}
|
||||
|
||||
// Token comes in from the front end to load the scene from the site.
|
||||
@@ -218,9 +219,18 @@ class Editor {
|
||||
}
|
||||
|
||||
async saveScene(name) {
|
||||
const result = await this.api_manager.saveSceneState(this.activeScene.scene,name,
|
||||
this.scene_file_token,
|
||||
new TimelineDataState());
|
||||
this.dispatchAppUiState({
|
||||
type: ACTION_TYPES.SHOW_EDITOR_LOADER
|
||||
});
|
||||
setInterval(()=> {
|
||||
this.dispatchAppUiState({
|
||||
type: ACTION_TYPES.HIDE_EDITOR_LOADER
|
||||
});
|
||||
},4000)
|
||||
// const result = await this.api_manager.saveSceneState(this.activeScene.scene,name,
|
||||
// this.scene_file_token,
|
||||
// new TimelineDataState());
|
||||
|
||||
// dispatch call wil's engine.
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user