summaryrefslogtreecommitdiff
path: root/editor/editor_properties.cpp
diff options
context:
space:
mode:
authorTiger Caldwell <tiger@caldwellfive.com>2018-07-25 18:43:32 -0400
committerTiger Caldwell <tiger@caldwellfive.com>2018-07-25 18:50:12 -0400
commit5421e46a431b7407af1e232c19025c9f03defcc4 (patch)
treea50feb2e7cea5963233468940bfdc7d0caffa05e /editor/editor_properties.cpp
parent9423f23ffb80c946dec380f73f3f313ec44d0d18 (diff)
Fixed Issue #20399
Diffstat (limited to 'editor/editor_properties.cpp')
-rw-r--r--editor/editor_properties.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp
index 4ff1fb2984..4fae8467b4 100644
--- a/editor/editor_properties.cpp
+++ b/editor/editor_properties.cpp
@@ -726,6 +726,7 @@ void EditorPropertyLayers::_menu_pressed(int p_menu) {
grid->value |= (1 << p_menu);
}
grid->update();
+ layers->set_item_checked(layers->get_item_index(p_menu), grid->value & (1 << p_menu));
_grid_changed(grid->value);
}
@@ -751,6 +752,7 @@ EditorPropertyLayers::EditorPropertyLayers() {
set_bottom_editor(hb);
layers = memnew(PopupMenu);
add_child(layers);
+ layers->set_hide_on_checkable_item_selection(false);
layers->connect("id_pressed", this, "_menu_pressed");
}
///////////////////// INT /////////////////////////