Browse Source

Merge pull request #69249 from timothyqiu/tile-data-redraw

Update TileSet preview when paint custom data changes
Rémi Verschelde 2 years ago
parent
commit
2975fc9460
1 changed files with 1 additions and 0 deletions
  1. 1 0
      editor/plugins/tiles/tile_data_editors.cpp

+ 1 - 0
editor/plugins/tiles/tile_data_editors.cpp

@@ -851,6 +851,7 @@ GenericTilePolygonEditor::GenericTilePolygonEditor() {
 void TileDataDefaultEditor::_property_value_changed(StringName p_property, Variant p_value, StringName p_field) {
 	ERR_FAIL_COND(!dummy_object);
 	dummy_object->set(p_property, p_value);
+	emit_signal(SNAME("needs_redraw"));
 }
 
 Variant TileDataDefaultEditor::_get_painted_value() {