Skip to content

[BUGFIX] Fix Camera Editor event data pasting into layer name#7549

Open
VICK-sys wants to merge 240 commits into
FunkinCrew:preview/camera-editorfrom
VICK-sys:fix/camera-editor-block-event-paste-into-layer-name
Open

[BUGFIX] Fix Camera Editor event data pasting into layer name#7549
VICK-sys wants to merge 240 commits into
FunkinCrew:preview/camera-editorfrom
VICK-sys:fix/camera-editor-block-event-paste-into-layer-name

Conversation

@VICK-sys
Copy link
Copy Markdown

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

Linked Issues

Fixes #7440

Description

Camera Editor copies the event JSON to the OS clipboard. Pasting it into a layer name field dumped the JSON into the name. HaxeUI's native TextField paste happens before any Haxe-level handler can pre-empt it, so cancel/revert approaches lose the race on spam Ctrl+V. When entering edit mode, stash the OS clipboard locally and clear it (only if it looks like song JSON). Restore on exit if it's still empty, so any new copy during edit is preserved. Also gate the screen-level PasteEventsCommand on !timeline.layerPanel.isEditing.

Screenshots/Videos

Demo.Video.mp4

@github-actions github-actions Bot added the size: huge A huge pull request with more than 500 changes. label May 8, 2026
@VICK-sys VICK-sys changed the base branch from main to develop May 8, 2026 21:42
@github-actions github-actions Bot added pr: haxe PR modifies game code. pr: documentation PR modifies documentation or README files. pr: github PR modifies GitHub metadata files. status: pending triage Awaiting review. and removed size: huge A huge pull request with more than 500 changes. labels May 8, 2026
@VICK-sys VICK-sys changed the base branch from develop to preview/camera-editor May 8, 2026 21:42
@NotHyper-474 NotHyper-474 added type: minor bug Involves a minor bug or issue. topic: camera editor Related to the operation of the Camera Editor. and removed pr: documentation PR modifies documentation or README files. pr: github PR modifies GitHub metadata files. labels May 8, 2026
@VirtuGuy
Copy link
Copy Markdown
Contributor

VirtuGuy commented May 8, 2026

Bro holy moly chill out on the PRs dude /j.

@Hundrec Hundrec added the size: medium A medium pull request with 100 or fewer changes. label May 9, 2026
@Hundrec Hundrec changed the title Fix/camera editor block event paste into layer name [BUGFIX] Fix Camera Editor event data pasting into layer name 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-block-event-paste-into-layer-name branch from 3f26099 to ad4bf8b Compare May 10, 2026 09:31
@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: medium A medium pull request with 100 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: Event properties get placed in the layer name box if a copied event is pasted