Camera can no longer be deleted.

This commit is contained in:
Quicksticks-oss committed 2024-04-15 21:26:04 -04:00
1 parent 0fc2f9eaeb
commit 6edc33af7c
2 files changed
+4

No files matched your search

+1
View File
@@ -653,6 +653,7 @@ class Editor {
deleteObject(uuid: string) {
const obj = this.activeScene.get_object_by_uuid(uuid);
if(obj?.name === "::CAM::") { return; }
if (obj) {
this.activeScene.scene.remove(obj);
}
+3
View File
@@ -245,6 +245,9 @@ export class TimeLine {
}
public deleteObject(object_uuid: string) {
let object = this.scene.get_object_by_uuid(object_uuid);
if(object === null) { return; }
if(object?.name === "::CAM::") { return; }
this.timeline_items = this.timeline_items.filter(
(element) => element.object_uuid !== object_uuid,
);