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

Do not reset scroll on atlas region editor #7185

Open
hydroper opened this issue Jul 2, 2023 · 2 comments
Open

Do not reset scroll on atlas region editor #7185

hydroper opened this issue Jul 2, 2023 · 2 comments

Comments

@hydroper
Copy link

hydroper commented Jul 2, 2023

Describe the project you are working on

RPG

Describe the problem or limitation you are having in your project

Everytime I re-open the atlas region editor, the scroll resets if I click anywhere for the first time in the image to select a region; however the scroll starts in the expected position (that is, when I open the region selector, the Godot editor scrolls to the last position I've been dragging around).

To clarify, I'm opening the atlas region selector multiple times, and the last time I open it, it scrolls to the correct position (the one from the previous selected region, including zoom). However, if I click for the first time after opening the region selector again, it resets the scroll (the verticall scroll, I guess).

Describe the feature / enhancement and how it helps to overcome the problem or limitation

Since the scroll is retained from the last time you selected a region from an image, do not, after a click somewhere, reset its initial scroll positions.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

Just a fix. This can be almost considered a bug.

If this enhancement will not be used often, can it be worked around with a few lines of script?

N/A

Is there a reason why this should be core and not an add-on in the asset library?

Editor.

@arkology
Copy link

arkology commented Jul 3, 2023

If I remember correctly, it's a bug that fixed in 4.1.
godotengine/godot#78091
Or maybe I misunderstood description.

@hydroper
Copy link
Author

hydroper commented Jul 3, 2023

@arkology I'm using Godot 4.1rc2 as of the writing. It's not related to preview too (related to the region selector).

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

No branches or pull requests

4 participants