diff options
author | MisterMX <mbxd12@web.de> | 2022-09-28 19:17:53 +0200 |
---|---|---|
committer | MisterMX <mbxd12@web.de> | 2022-09-28 21:16:41 +0200 |
commit | b6c1a03d6ce02df531fea663256e99daa756d439 (patch) | |
tree | c3c9dc8342699dd64c445fe2bf46b681d252c5af /editor/plugins/tiles/tile_data_editors.h | |
parent | 7f113042c01e4ad59a8cd747bcc1a47058fa2a43 (diff) |
fix(tileset): Recreate custom data editor if type has changed
Signed-off-by: MisterMX <mbxd12@web.de>
Diffstat (limited to 'editor/plugins/tiles/tile_data_editors.h')
-rw-r--r-- | editor/plugins/tiles/tile_data_editors.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/plugins/tiles/tile_data_editors.h b/editor/plugins/tiles/tile_data_editors.h index c1560138b2..0a947fce8b 100644 --- a/editor/plugins/tiles/tile_data_editors.h +++ b/editor/plugins/tiles/tile_data_editors.h @@ -220,6 +220,7 @@ protected: StringName type; String property; + Variant::Type property_type; void _notification(int p_what); virtual Variant _get_painted_value(); @@ -237,6 +238,7 @@ public: virtual void draw_over_tile(CanvasItem *p_canvas_item, Transform2D p_transform, TileMapCell p_cell, bool p_selected = false) override; void setup_property_editor(Variant::Type p_type, String p_property, String p_label = "", Variant p_default_value = Variant()); + Variant::Type get_property_type(); TileDataDefaultEditor(); ~TileDataDefaultEditor(); |