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

Fix UndoRedo history mismatch when creating a new tile atlas #86387

Merged
merged 1 commit into from
Dec 22, 2023

Conversation

jsjtxietian
Copy link
Contributor

@jsjtxietian jsjtxietian commented Dec 21, 2023

Fixes #86291

It seems that there's no need to put set_texture_region_size in do method as it's a newly created resource and no pairded redo method.

But I feel the history mismatch problem lies in other places, it's only a stopgap measure. Any suggestions ?

Copy link
Member

@KoBeWi KoBeWi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a correct fix.

The issue is basically the same as #79750. It only happens with TileSet saved to file. Undo history starts in global context, but the newly created atlas is recognized as a built-in resource, thus part of the scene, causing mismatch.

@YuriSizov YuriSizov merged commit 980d551 into godotengine:master Dec 22, 2023
15 checks passed
@YuriSizov
Copy link
Contributor

Thanks!

@jsjtxietian jsjtxietian deleted the fix-tile-set branch December 23, 2023 06:28
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.

UndoRedo history mismatch when creating a new tile atlas
4 participants