diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-09-04 08:07:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-04 08:07:41 +0200 |
commit | 08dde55e4fb5f6902a575af6a9535482df700dc7 (patch) | |
tree | 2fee4d89c77f507d1936249d8a62f60a5de37e12 /editor/plugins | |
parent | fb263b73aa0398948a3884ac81f8d971c8d1d98f (diff) | |
parent | a3c5e84f59afa9f093977fa90bcca22b2baba00f (diff) |
Merge pull request #10920 from Paulb23/smooth_scrolling_shader_editor
Enabled smooth scrolling for shader editor
Diffstat (limited to 'editor/plugins')
-rw-r--r-- | editor/plugins/shader_editor_plugin.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/plugins/shader_editor_plugin.cpp b/editor/plugins/shader_editor_plugin.cpp index 13b0391a87..b02016c273 100644 --- a/editor/plugins/shader_editor_plugin.cpp +++ b/editor/plugins/shader_editor_plugin.cpp @@ -289,6 +289,8 @@ void ShaderEditor::_editor_settings_changed() { shader_editor->get_text_edit()->cursor_set_blink_speed(EditorSettings::get_singleton()->get("text_editor/cursor/caret_blink_speed")); shader_editor->get_text_edit()->add_constant_override("line_spacing", EditorSettings::get_singleton()->get("text_editor/theme/line_spacing")); shader_editor->get_text_edit()->cursor_set_block_mode(EditorSettings::get_singleton()->get("text_editor/cursor/block_caret")); + shader_editor->get_text_edit()->set_smooth_scroll_enabled(EditorSettings::get_singleton()->get("text_editor/open_scripts/smooth_scrolling")); + shader_editor->get_text_edit()->set_v_scroll_speed(EditorSettings::get_singleton()->get("text_editor/open_scripts/v_scroll_speed")); } void ShaderEditor::_bind_methods() { |