Skip to content

[BUGFIX] Don't carry over Camera Editor preview state#7629

Open
VICK-sys wants to merge 1 commit into
FunkinCrew:preview/camera-editorfrom
VICK-sys:fix/camera-editor-preview-state-carryover
Open

[BUGFIX] Don't carry over Camera Editor preview state#7629
VICK-sys wants to merge 1 commit into
FunkinCrew:preview/camera-editorfrom
VICK-sys:fix/camera-editor-preview-state-carryover

Conversation

@VICK-sys
Copy link
Copy Markdown

Linked Issues

Fixes #7490

Description

CameraEditorState.buildStage() never cancelled cameraRect's in-flight tweens when loading a new chart. The stage's default zoom/scroll gets reassigned, but the next frame's update() lerps zoom back from the previous chart's still-active cameraZoomEase (and same for cameraFollowEase, which is why the camera position also fails to update). Calling cameraRect.cancelAllTweens() before reapplying zoom and scroll position makes the new chart's defaults stick.

Screenshots/Videos

Demo.mp4

@github-actions github-actions Bot added status: pending triage Awaiting review. size: huge A huge pull request with more than 500 changes. pr: haxe PR modifies game code. pr: documentation PR modifies documentation or README files. labels May 26, 2026
@VICK-sys VICK-sys changed the base branch from develop to preview/camera-editor May 26, 2026 01:26
@NotHyper-474 NotHyper-474 added topic: camera editor Related to the operation of the Camera Editor. type: minor bug Involves a minor bug or issue. size: tiny A tiny pull request with 4 or fewer changes. and removed pr: documentation PR modifies documentation or README files. size: huge A huge pull request with more than 500 changes. labels May 26, 2026
@Hundrec Hundrec changed the title [BUGFIX] camera editor preview state carryover [BUGFIX] Don't carry over Camera Editor preview state May 27, 2026
@Hundrec Hundrec linked an issue May 27, 2026 that may be closed by this pull request
4 tasks
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: Current camera preview may carry over to newly loaded chart

2 participants