Fix type error

This commit is contained in:
JannisX11 2025-03-16 23:02:20 +01:00
parent 40e54713cd
commit fcd9b08433

View File

@ -125,6 +125,9 @@ export class OutlinerNode {
get preview_controller() {
return this.constructor.preview_controller;
}
getTypeBehavior(flag) {
return OutlinerElement.types[this.type]?.behavior[flag];
}
//Sorting
sortInBefore(element, index_mod = 0) {
var index = -1;
@ -381,9 +384,6 @@ export class OutlinerElement extends OutlinerNode {
Project.elements.remove(this);
return this;
}
getTypeBehavior(flag) {
return OutlinerElement.types[this.type]?.behavior[flag];
}
showContextMenu(event) {
if (this.locked) return this;
if (!this.selected) {