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

Update TileSet preview when paint custom data changes
This commit is contained in:
Rémi Verschelde 2022-11-28 11:02:57 +01:00
commit 2975fc9460
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 0 deletions

View File

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