YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
21 stars 8 forks source link

Deleting objects from the resource tree, should delete links in sequences as well #6061

Open gm-bug-reporter[bot] opened 3 months ago

gm-bug-reporter[bot] commented 3 months ago

Description

Deleting objects from the resource tree should remove the links in the sequences to these objects as well. Because this does not happen, a compilation error is created, while the objects themselves are present in the sequences.

Steps To Reproduce

Run the project. Delete two objects from the resource tree (Object1, Object2). Run the test compilation. Observe the error. Try to clear the cache. Error again. Go into the sequence. Observe that the objects seem to be present. It is more logical that they be deleted and all links to them too.

Which version of GameMaker are you reporting this issue for?

IDE v2024.600.0.562 Runtime v2024.600.0.580

Which operating system(s) are you seeing the problem on?

Windows 10.0.22631.0

a4784206-6e1f-4ceb-ab74-8c7c76dee42a

ParodyKnaveBob commented 3 months ago

Perhaps there should be a warning prompt asking what the user wants to do?

stuckie commented 2 months ago

We can either cancel the request, or delete the references. We cannot leave empty or blank links as the link must match up to something, or be null, else the project becomes broken and you will no longer be able to open it at all. However, this will require a bit of thought as to how to display to the user, as the item you delete could be referenced all over the project, and printing that out in a little box is probably not the best way!