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

TileSet Paint Properties Vector2i like Texture Origin allows float input #73509

Closed
hsandt opened this issue Feb 17, 2023 · 1 comment · Fixed by #73514
Closed

TileSet Paint Properties Vector2i like Texture Origin allows float input #73509

hsandt opened this issue Feb 17, 2023 · 1 comment · Fixed by #73514

Comments

@hsandt
Copy link
Contributor

hsandt commented Feb 17, 2023

Godot version

v4.0.rc2.official [d2699dc]

System information

Linux Ubuntu 20.04 with Unity desktop

Issue description

In the TileSet window, Paint tab, when selecting Paint Properties of type Vector2i like Texture Origin, you can enter floats (fractional numbers) in the fields, giving a false impression that is is a Vector2. When you click on tiles to paint though, only a Vector2i (clamped to integer nearest to zero) value is set.

image

then click on tile to set origin:

image

tileset.tres diff shows:

0:0/0/texture_origin = Vector2i(-1, 2)

or you can check in the Select tab, the property:

image

Steps to reproduce

  1. Create TileSet resource, open TileSet window, create at least 1 tile > Paint tab
  2. Select Texture Origin
  3. Enter float values and paint

Minimal reproduction project

N/A

@AThousandShips
Copy link
Member

I think I've got a fix for this testing now

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.

4 participants