Skip to content

[BUGFIX] Use stage directory for asset library in Camera Editor#7545

Open
VICK-sys wants to merge 240 commits into
FunkinCrew:preview/camera-editorfrom
VICK-sys:fix/camera-editor-schoolerect-asset-library
Open

[BUGFIX] Use stage directory for asset library in Camera Editor#7545
VICK-sys wants to merge 240 commits into
FunkinCrew:preview/camera-editorfrom
VICK-sys:fix/camera-editor-schoolerect-asset-library

Conversation

@VICK-sys
Copy link
Copy Markdown

@VICK-sys VICK-sys commented May 8, 2026

Linked Issues

Fixes #7480

Description

CameraEditorState.buildStage was setting the asset library via Stage.getCampaignID(stageID), whose switch is missing the schoolErect case. It fell through to default: stageName, so Paths.setCurrentLevel('schoolerect') made weeb/erect/masks/* (in the week6 library) unresolvable and DropShadowShader.loadAltMask returned null.

Switched to currentStage._data?.directory ?? "shared", matching LoadingState.loadPlayState's pattern.

Screenshots/Videos

Demo.Video.mp4

@github-actions github-actions Bot added size: huge A huge pull request with more than 500 changes. status: pending triage Awaiting review. pr: haxe PR modifies game code. pr: documentation PR modifies documentation or README files. and removed status: pending triage Awaiting review. labels May 8, 2026
@VICK-sys VICK-sys changed the base branch from develop to preview/camera-editor May 8, 2026 19:12
@VICK-sys VICK-sys changed the title Fix/camera editor schoolerect asset library Fix: Use stage directory for asset library in Camera Editor May 8, 2026
@NotHyper-474 NotHyper-474 added type: minor bug Involves a minor bug or issue. status: pending triage Awaiting review. size: tiny A tiny pull request with 4 or fewer changes. topic: camera editor Related to the operation of the Camera Editor. pr: haxe PR modifies game code. and removed pr: haxe PR modifies game code. pr: documentation PR modifies documentation or README files. size: huge A huge pull request with more than 500 changes. labels May 8, 2026
@VirtuGuy
Copy link
Copy Markdown
Contributor

VirtuGuy commented May 8, 2026

Was gonna say why no Haxe?

@Hundrec Hundrec changed the title Fix: Use stage directory for asset library in Camera Editor [BUGFIX] Use stage directory for asset library in Camera Editor May 9, 2026
ninjamuffin99 and others added 25 commits May 9, 2026 04:45
The variation was being resolved, but the difficulty wasn't. This ended up loading a chart without the current variation with no note data.

The new function is a bandaid fix, it should be made more versatile in the future.
This fixes entering the Chart Editor from Freeplay/PlayState not setting the right difficulty.
This reverts commits ed15ce0d1a964036d1ad99f0e97771a3bf3cde3d and 67bfa080f96866774a7e864778c846bdcf97d476.
@Hundrec Hundrec force-pushed the preview/camera-editor branch from ba98ece to ca56364 Compare May 9, 2026 10:46
@VICK-sys VICK-sys force-pushed the fix/camera-editor-schoolerect-asset-library branch from 66d4060 to dc52a82 Compare May 10, 2026 09:28
@Hundrec Hundrec force-pushed the preview/camera-editor branch 2 times, most recently from 2f16387 to f0bf30b Compare May 15, 2026 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: haxe PR modifies game code. size: tiny A tiny pull request with 4 or fewer changes. status: pending triage Awaiting review. topic: camera editor Related to the operation of the Camera Editor. type: minor bug Involves a minor bug or issue.

Development

Successfully merging this pull request may close these issues.

Bug Report: Loading the Week 6 Erect variation in Camera Editor shows an error that disables the shader in PlayState