Fixing bugs when deleting object with dependencies.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Adsooi 2021-09-23 16:17:57 +02:00
parent 0ae301fea0
commit 5f82a3e3a4
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160
2 changed files with 1 additions and 16 deletions

View file

@ -105,7 +105,7 @@ class DrawableObject {
delete() {
for(var toRemove of this.requiredBy) {
toRemove.delete()
currentObjects[toRemove.type] = currentObjects[toRemove.type].filter(obj => obj.name != toRemove.name)
Objects.currentObjects[toRemove.type] = Objects.currentObjects[toRemove.type].filter(obj => obj.name != toRemove.name)
}
}