From fb317546fe4ded0c5ea192ae9a870722a0d6e59c Mon Sep 17 00:00:00 2001 From: Ninni Pipping Date: Fri, 17 Feb 2023 18:05:05 +0100 Subject: [PATCH] Fix TileSetEditor paiting texture_origin Vector2i --- editor/plugins/tiles/tile_set_atlas_source_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/plugins/tiles/tile_set_atlas_source_editor.cpp b/editor/plugins/tiles/tile_set_atlas_source_editor.cpp index fcefbb7d0656..235e34d9b5c6 100644 --- a/editor/plugins/tiles/tile_set_atlas_source_editor.cpp +++ b/editor/plugins/tiles/tile_set_atlas_source_editor.cpp @@ -648,7 +648,7 @@ void TileSetAtlasSourceEditor::_update_tile_data_editors() { if (!tile_data_editors.has("texture_origin")) { TileDataTextureOriginEditor *tile_data_texture_origin_editor = memnew(TileDataTextureOriginEditor); tile_data_texture_origin_editor->hide(); - tile_data_texture_origin_editor->setup_property_editor(Variant::VECTOR2, "texture_origin"); + tile_data_texture_origin_editor->setup_property_editor(Variant::VECTOR2I, "texture_origin"); tile_data_texture_origin_editor->connect("needs_redraw", callable_mp((CanvasItem *)tile_atlas_control_unscaled, &Control::queue_redraw)); tile_data_texture_origin_editor->connect("needs_redraw", callable_mp((CanvasItem *)alternative_tiles_control_unscaled, &Control::queue_redraw)); tile_data_editors["texture_origin"] = tile_data_texture_origin_editor;