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

Can't batch create atlas tiles when dragging multiple images into TileSet editor #69273

Closed
timothyqiu opened this issue Nov 28, 2022 · 5 comments · Fixed by #79678
Closed

Can't batch create atlas tiles when dragging multiple images into TileSet editor #69273

timothyqiu opened this issue Nov 28, 2022 · 5 comments · Fixed by #79678

Comments

@timothyqiu
Copy link
Member

Godot version

4.0.beta6

System information

Arch Linux

Issue description

When dragging an image into the TileSet editor, you'll be prompted with:

Would you like to automatically create tiles in the atlas?

This is quite handy.

However, some asset packs split tiles into multiple sprite sheet images. Dragging multiple images into the TileSet editor won't ask to create the tiles for you. So the user have to either

  • drag the sprite sheets into the editor one by one, and click "Yes" when prompted, or
  • go through each created atlas, and select "Create Tiles in Non-Transparent Texture Regions"

Quite tedious when the number of sprite sheets are large.

Steps to reproduce

Drag two or more images into a TileSet editor. There won't be any dialog asking for creating tiles in the altas for you.

Minimal reproduction project

N/A

@henrlin24
Copy link
Contributor

Hey there, I was interested in trying to solve this issue. I was confused on what the expected behavior was when dragging in multiple images; would it be to create multiple atlases from each of the respective images, and then automatically create tiles for each?

@timothyqiu
Copy link
Member Author

Dragging a single image into the tiles editor asks the user if it should create tiles automatically. I think when dragging multiple images, it should ask something like "do you want to create tiles for all the images".

@henrlin24
Copy link
Contributor

Gotcha, thank you for the clarification.

@jamesmintram
Copy link
Contributor

@timothyqiu I have created a draft PR here. Needs some cleanup but it is functional.

@jamesmintram
Copy link
Contributor

PR ready for review

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

Successfully merging a pull request may close this issue.

6 participants