1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Added possibility to change color of 2d editor grid

This commit is contained in:
Chaosus
2018-08-18 18:32:09 +03:00
parent c93888ae71
commit 66c25d4829
5 changed files with 9 additions and 14 deletions

View File

@@ -70,7 +70,7 @@ void TextureRegionEditor::_region_draw() {
VS::get_singleton()->canvas_item_add_set_transform(edit_draw->get_canvas_item(), Transform2D());
if (snap_mode == SNAP_GRID) {
Color grid_color = get_color("grid_major_color", "Editor");
Color grid_color = Color(1.0, 1.0, 1.0, 0.15);
Size2 s = edit_draw->get_size();
int last_cell = 0;