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

Image error when generating preview icon for non RGBA8 terrain tiles #84506

Closed
SaracenOne opened this issue Nov 6, 2023 · 0 comments · Fixed by #84507
Closed

Image error when generating preview icon for non RGBA8 terrain tiles #84506

SaracenOne opened this issue Nov 6, 2023 · 0 comments · Fixed by #84507

Comments

@SaracenOne
Copy link
Member

Godot version

5ee9831

System information

Windows 11

Issue description

Godot editor will throw an error and fail to generate preview icons for terrain tiles which use a base image which is not RGBA8 format.
core\io\image.cpp:2788 - Condition "format != p_src->format" is true.

Steps to reproduce

  • Import a non-RGBA8 image into Godot.
  • Create a TileMap
  • Create an associated TileSet
  • Create a terrain for this tileset
  • Add the image as an atlas
  • Go to the paint tab
  • Paint the terrain on the TileSet
  • An error will occur any time terrains are edited in the TileSet editor or selected in the TileMap editor terrain tab.

Minimal reproduction project

tileset_terrain_bug.zip

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

Successfully merging a pull request may close this issue.

1 participant