Skip to content

Clarify: isLoaded, loadFile, unloadFile#2015

Merged
chchwy merged 1 commit into
pencil2d:masterfrom
MrStevns:keyframe-load-changes
May 20, 2026
Merged

Clarify: isLoaded, loadFile, unloadFile#2015
chchwy merged 1 commit into
pencil2d:masterfrom
MrStevns:keyframe-load-changes

Conversation

@MrStevns

@MrStevns MrStevns commented May 19, 2026

Copy link
Copy Markdown
Member

The methods are now documented. In addition I have also tweaked the unloadFile a bit, so it's no longer possible to unload the bitmap image without a valid backing image.

Let me know if you agree with this or not.. Previously i thought isLoaded was about whether the backing file has been loaded or not but looking at how we use it, that can't be. It seems to only be about whether the keyframe holds valid data in memory, which is slightly confusing with the name leaning towards loadFile, unloadFile.

@sonarqubecloud

Copy link
Copy Markdown

@github-project-automation github-project-automation Bot moved this from Needs Review to Approved in Pull Request Priority May 20, 2026
@chchwy chchwy merged commit b8a30d7 into pencil2d:master May 20, 2026
8 checks passed
@github-project-automation github-project-automation Bot moved this from Approved to Merged in Pull Request Priority May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants