mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-03 17:08:13 +00:00
temp-fix-preview
This commit is contained in:
1 parent
a01d725b2a
commit
618fda657c
1 file changed
+1
-8
@@ -364,12 +364,6 @@ class Editor {
|
||||
this.loadScene(sceneToken);
|
||||
}
|
||||
|
||||
document.addEventListener('mouseover', (event) => {
|
||||
if(event.target instanceof HTMLCanvasElement)
|
||||
console.log(event.target instanceof HTMLCanvasElement);
|
||||
});
|
||||
|
||||
|
||||
loadingBarData.value = {
|
||||
...loadingBarData.value,
|
||||
progress: 100,
|
||||
@@ -1084,6 +1078,7 @@ class Editor {
|
||||
await ffmpeg.run("-i", `render.png`, "render.mp4");
|
||||
const output = await ffmpeg.FS("readFile", "render.mp4");
|
||||
const blob = new Blob([output.buffer], { type: "video/mp4" });
|
||||
this.generating_preview = false;
|
||||
|
||||
const url = await this.api_manager.uploadMediaFrameGeneration(
|
||||
blob,
|
||||
@@ -1103,8 +1098,6 @@ class Editor {
|
||||
console.log("No style preview window.");
|
||||
}
|
||||
|
||||
this.generating_preview = false;
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
resolve(url);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user