Skip to content

fix children of deleted clips not being found in cache#110

Open
BaronAWC wants to merge 6 commits intodevelopmentfrom
baron-tweenUndoCrash
Open

fix children of deleted clips not being found in cache#110
BaronAWC wants to merge 6 commits intodevelopmentfrom
baron-tweenUndoCrash

Conversation

@BaronAWC
Copy link
Collaborator

@BaronAWC BaronAWC commented Mar 2, 2026

When a clip is deleted but still in the undo stack and the project clears cache via pausing the project, the clip's children are no longer deleted from the cache so the user can undo to recover the clip.

(Ignore the 4 built files)

use the following in console to create a function that gives all objects in cache:
window.getObjs = function() { let out = []; let print = ""; for(let elem of Wick.ObjectCache.getAllObjects()) { out.push(elem.classname + " " + elem.uuid); } for(let line of out.sort()) { print += "" + line + "\n"; } console.log(print); }

use Wick.ObjectCache.getObjectByUUID(uuid) to get the object itself

the editor runs project.resetCache() when the project stops, but you can also run this manually
…Timeline objects

the 2 functions are there to give me debug info on what objects exist at any given time, with the former giving me a summary and the latter giving me everything
comments and removing prints
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant