summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-04-26 08:14:04 +0200
committerGitHub <noreply@github.com>2017-04-26 08:14:04 +0200
commit88d362b23282bc46d8a069c1c6a8987085bc877a (patch)
treeb948bf05c93876d2442533e9d583cf3460368efa /editor
parent1a47087a734c038f20a3733ba8055c9583427c20 (diff)
parentff282571c6a1b9b5e57fd3a8e435b84438bc22a3 (diff)
Merge pull request #8531 from RameshRavone/patch-5
Settings: Moving Poly Editor into Editors category
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_settings.cpp2
-rw-r--r--editor/plugins/line_2d_editor_plugin.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/editor/editor_settings.cpp b/editor/editor_settings.cpp
index 9beffa3c67..f1b7667a50 100644
--- a/editor/editor_settings.cpp
+++ b/editor/editor_settings.cpp
@@ -595,6 +595,8 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) {
set("editors/2d/keep_margins_when_changing_anchors", false);
set("editors/2d/warped_mouse_panning", true);
+ set("editors/poly_editor/point_grab_radius", 8);
+
set("run/window_placement/rect", 0);
hints["run/window_placement/rect"] = PropertyInfo(Variant::INT, "run/window_placement/rect", PROPERTY_HINT_ENUM, "Default,Centered,Custom Position,Force Maximized,Force Full Screen");
String screen_hints = TTR("Default (Same as Editor)");
diff --git a/editor/plugins/line_2d_editor_plugin.cpp b/editor/plugins/line_2d_editor_plugin.cpp
index 69e329eb1a..4df0d2605a 100644
--- a/editor/plugins/line_2d_editor_plugin.cpp
+++ b/editor/plugins/line_2d_editor_plugin.cpp
@@ -62,7 +62,7 @@ Vector2 Line2DEditor::mouse_to_local_pos(Vector2 gpoint, bool alt) {
int Line2DEditor::get_point_index_at(Vector2 gpos) {
ERR_FAIL_COND_V(node == 0, -1);
- real_t grab_treshold = EDITOR_DEF("poly_editor/point_grab_radius", 8);
+ real_t grab_treshold = EDITOR_DEF("editors/poly_editor/point_grab_radius", 8);
Transform2D xform = canvas_item_editor->get_canvas_transform() * node->get_global_transform();
for (int i = 0; i < node->get_point_count(); ++i) {