Merge pull request #15572 from poke1024/fix15366

Fixes snap button getting out of sync (issue 15366)
This commit is contained in:
Rémi Verschelde 2018-01-11 11:04:08 +01:00 committed by GitHub
commit 6f75866aef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3915,7 +3915,7 @@ void SpatialEditor::set_state(const Dictionary &p_state) {
if (d.has("snap_enabled")) {
snap_enabled = d["snap_enabled"];
tool_option_button[TOOL_OPT_LOCAL_COORDS]->set_pressed(d["snap_enabled"]);
tool_option_button[TOOL_OPT_USE_SNAP]->set_pressed(d["snap_enabled"]);
}
if (d.has("translate_snap"))