diff options
| author | Marc Gilleron | 2016-12-31 17:56:27 +0100 |
|---|---|---|
| committer | Rémi Verschelde | 2017-01-12 19:15:29 +0100 |
| commit | ba50bb9cb187f51abd010a91761b23a0961aa3d4 (patch) | |
| tree | 2793c2d9d948670fa1610864da546c7d689f46e7 | |
| parent | 2a60bf1cd975e80d28965e42577080681af05914 (diff) | |
| download | godot-ba50bb9cb187f51abd010a91761b23a0961aa3d4.tar.gz godot-ba50bb9cb187f51abd010a91761b23a0961aa3d4.tar.zst godot-ba50bb9cb187f51abd010a91761b23a0961aa3d4.zip | |
Added option to toggle bucket fill preview
(cherry picked from commit 39771f22b6296f52842148332b601a9a49c16181)
| -rw-r--r-- | tools/editor/plugins/tile_map_editor_plugin.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/editor/plugins/tile_map_editor_plugin.cpp b/tools/editor/plugins/tile_map_editor_plugin.cpp index 00c89534c..0a219fae1 100644 --- a/tools/editor/plugins/tile_map_editor_plugin.cpp +++ b/tools/editor/plugins/tile_map_editor_plugin.cpp @@ -1204,8 +1204,8 @@ void TileMapEditor::_canvas_draw() { canvas_item_editor->draw_line(endpoints[i],endpoints[(i+1)%4],col,2); - if (tool==TOOL_SELECTING || tool==TOOL_PICKING) { - + bool bucket_preview = EditorSettings::get_singleton()->get("tile_map/bucket_fill_preview"); + if (tool==TOOL_SELECTING || tool==TOOL_PICKING || !bucket_preview) { return; } @@ -1582,6 +1582,7 @@ TileMapEditorPlugin::TileMapEditorPlugin(EditorNode *p_node) { EDITOR_DEF("tile_map/preview_size",64); EDITOR_DEF("tile_map/palette_item_hseparation",8); EDITOR_DEF("tile_map/show_tile_names", true); + EDITOR_DEF("tile_map/bucket_fill_preview", true); tile_map_editor = memnew( TileMapEditor(p_node) ); add_control_to_container(CONTAINER_CANVAS_EDITOR_SIDE, tile_map_editor); |
