diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2018-01-11 11:04:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-11 11:04:08 +0100 |
commit | 6f75866aef113bf776f5df3cc664f872fdb37212 (patch) | |
tree | 4873ddc559320075e74766bfd289151490df1616 | |
parent | 2f437e263ffeaf48e733b492eb3cb524ca3b4adc (diff) | |
parent | b352b0b88c820b5d05d3265767fef11a4894111c (diff) |
Merge pull request #15572 from poke1024/fix15366
Fixes snap button getting out of sync (issue 15366)
-rw-r--r-- | editor/plugins/spatial_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/spatial_editor_plugin.cpp b/editor/plugins/spatial_editor_plugin.cpp index 535ce79b30..b677017371 100644 --- a/editor/plugins/spatial_editor_plugin.cpp +++ b/editor/plugins/spatial_editor_plugin.cpp @@ -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")) |