diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-08-30 09:59:43 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-08-30 09:59:43 +0200 |
commit | 84ad6115655a7a7f4a754b87cb6ea4879b387a3c (patch) | |
tree | a6d9c9f2c0f871ad6bebef792d904404f0a358c2 /editor/plugins/tiles/tile_map_layer_editor.cpp | |
parent | 5418919c3cc53c8e805da3eabe12d16306f67c44 (diff) | |
parent | aaa157f929a59ed6e22b4e628fb135c414eecbe2 (diff) | |
download | redot-engine-84ad6115655a7a7f4a754b87cb6ea4879b387a3c.tar.gz |
Merge pull request #96280 from CreatedBySeb/fix-tileset-scattering
Fix TileSet Scattering setting vanishing when changing tools
Diffstat (limited to 'editor/plugins/tiles/tile_map_layer_editor.cpp')
-rw-r--r-- | editor/plugins/tiles/tile_map_layer_editor.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/editor/plugins/tiles/tile_map_layer_editor.cpp b/editor/plugins/tiles/tile_map_layer_editor.cpp index 7e7d7e3291..7e6746dd3c 100644 --- a/editor/plugins/tiles/tile_map_layer_editor.cpp +++ b/editor/plugins/tiles/tile_map_layer_editor.cpp @@ -86,8 +86,7 @@ void TileMapLayerEditorTilesPlugin::_update_toolbar() { transform_toolbar->show(); tools_settings_vsep_2->show(); random_tile_toggle->show(); - scatter_label->show(); - scatter_spinbox->show(); + scatter_controls_container->set_visible(random_tile_toggle->is_pressed()); } else { tools_settings_vsep->show(); picker_button->show(); @@ -96,8 +95,7 @@ void TileMapLayerEditorTilesPlugin::_update_toolbar() { tools_settings_vsep_2->show(); bucket_contiguous_checkbox->show(); random_tile_toggle->show(); - scatter_label->show(); - scatter_spinbox->show(); + scatter_controls_container->set_visible(random_tile_toggle->is_pressed()); } } |