Skip to content

[BUGFIX] Don't carry over Camera Editor preview state when loading new chart#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 when loading new chart#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
@Hundrec Hundrec force-pushed the preview/camera-editor branch from d1db30b to fa91b36 Compare June 17, 2026 12:13
@TechnikTil

Copy link
Copy Markdown
Contributor

This PR needs a rebase again!

@NotHyper-474 NotHyper-474 added status: needs revision Cannot be approved because it is awaiting some work by the contributor. and removed status: pending triage Awaiting review. labels Jun 19, 2026
@Hundrec Hundrec force-pushed the preview/camera-editor branch 3 times, most recently from 9272b54 to 07e54aa Compare June 22, 2026 16:19
@VICK-sys VICK-sys force-pushed the fix/camera-editor-preview-state-carryover branch from b7a2af0 to 7dfd534 Compare June 23, 2026 01:09
@NotHyper-474 NotHyper-474 added status: pending triage Awaiting review. and removed status: needs revision Cannot be approved because it is awaiting some work by the contributor. labels Jun 23, 2026
@Hundrec Hundrec added status: reviewing internally Under consideration and testing. and removed status: pending triage Awaiting review. labels Jun 23, 2026
@Hundrec Hundrec changed the title [BUGFIX] Don't carry over Camera Editor preview state [BUGFIX] Don't carry over Camera Editor preview state when loading new chart Jun 23, 2026
@Hundrec Hundrec added status: pending triage Awaiting review. and removed status: reviewing internally Under consideration and testing. labels Jun 23, 2026
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

4 participants