Skip to content
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

Alt+Click+Drag duplicates entities in the editor #84

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Yozhy
Copy link
Contributor

@Yozhy Yozhy commented Jun 6, 2024

This implements duplicating entities by holding alt and dragging an entity as described in #74.

The extra check for the DoNotPersitsOnSaveAttribute is necessary, because saving those components makes the entire world fail to deserialise (which is also why I had to add it to EditorTween). Maybe this check should actually be in hook.AddEntityWithStage, since I can't see why those components should ever be added to the asset.

Yozhy added 4 commits June 6, 2024 00:32
For some reason IsSelectedComponent, RenderedSpriteCacheComponent and EditorTween on the cloned entity cause it to not be deserializable, corrupting the entire world.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant