Skip to content

Gridmap editor: Avoid extra mesh instantiation when setting clipboard data #108026

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Fgico
Copy link

@Fgico Fgico commented Jun 26, 2025

This should fix the issue: Gridmap: Doing Cut operation generates a phantom tile #107996
When storing meshes in the clipboard, the selected mesh is instanced twice in a row, overwriting item.instance and leaving an extra mesh at the origin of the scene, since we lose the reference to it and it's never set to follow the selection cursor

@Fgico Fgico requested a review from a team as a code owner June 26, 2025 22:38
@AThousandShips AThousandShips added this to the 4.x milestone Jun 27, 2025
@AThousandShips AThousandShips requested a review from a team June 27, 2025 08:06
@AThousandShips
Copy link
Member

Your commit seems not to be linked to your GitHub account. See: Why are my commits linked to the wrong user? for more info.

@Fgico
Copy link
Author

Fgico commented Jun 27, 2025

Oops sorry, I'll fix it asap

@Fgico Fgico force-pushed the gridmap-avoid-extra-clipboard-mesh-instantiation branch from e3b019a to c5a59e4 Compare June 27, 2025 10:44
@Fgico
Copy link
Author

Fgico commented Jun 27, 2025

Fixed :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants