mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 09:28:11 +00:00
Camera can no longer be deleted.
This commit is contained in:
1 parent
0fc2f9eaeb
commit
6edc33af7c
2 files changed
+4
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user