mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-03 17:08:13 +00:00
Fixing mouse mouse and previews
This commit is contained in:
1 parent
fa933d55ce
commit
d4e8acbf31
1 file changed
+10
-5
@@ -364,6 +364,11 @@ class Editor {
|
||||
this.loadScene(sceneToken);
|
||||
}
|
||||
|
||||
document.addEventListener('mouseover', (event) => {
|
||||
console.log(event.target?.tagName);
|
||||
});
|
||||
|
||||
|
||||
loadingBarData.value = {
|
||||
...loadingBarData.value,
|
||||
progress: 100,
|
||||
@@ -654,7 +659,7 @@ class Editor {
|
||||
|
||||
deleteObject(uuid: string) {
|
||||
const obj = this.activeScene.get_object_by_uuid(uuid);
|
||||
if(obj?.name === "::CAM::") { return; }
|
||||
if (obj?.name === "::CAM::") { return; }
|
||||
if (obj) {
|
||||
this.activeScene.scene.remove(obj);
|
||||
}
|
||||
@@ -734,7 +739,7 @@ class Editor {
|
||||
}
|
||||
|
||||
getselectedSum() {
|
||||
if(this.selected === undefined) { return 0; }
|
||||
if (this.selected === undefined) { return 0; }
|
||||
let posCombo = this.selected.position.x + this.selected.position.y + this.selected.position.z;
|
||||
let rotCombo = this.selected.rotation.x + this.selected.rotation.y + this.selected.rotation.z;
|
||||
let sclCombo = this.selected.scale.x + this.selected.scale.y + this.selected.scale.z;
|
||||
@@ -797,7 +802,7 @@ class Editor {
|
||||
if (changeView) {
|
||||
this.switchCameraView();
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (this.last_scrub === this.timeline.scrubber_frame_position && this.getselectedSum() !== this.last_selected_sum) {
|
||||
this.updateSelectedUI();
|
||||
}
|
||||
@@ -1041,8 +1046,8 @@ class Editor {
|
||||
|
||||
async generateFrame() {
|
||||
if (this.renderer && !this.generating_preview) {
|
||||
this.removeTransformControls();
|
||||
this.generating_preview = true;
|
||||
this.removeTransformControls();
|
||||
this.activeScene.renderMode(true);
|
||||
if (this.activeScene.hot_items) {
|
||||
this.activeScene.hot_items.forEach((element) => {
|
||||
@@ -1108,7 +1113,7 @@ class Editor {
|
||||
// This initializes the generation of a video render scene is where the core work happens
|
||||
generateVideo() {
|
||||
console.log("Generating video...", this.frame_buffer);
|
||||
if (this.rendering) {
|
||||
if (this.rendering || this.generating_preview) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user