diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-01-18 10:47:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-18 10:47:50 +0100 |
commit | f6a02b881afbd1c46a25bd06eeae709de2e1a6ab (patch) | |
tree | 904f9d67a6c5216861b1c199a2f9bd841602f2d2 /editor | |
parent | 82482a7db80c7d5fc326830d1ab7cb5b0dc70432 (diff) | |
parent | 41acb1f6baee6ad876b0914d66ff99d98819e30e (diff) |
Merge pull request #35268 from Chaosus/fix_shader_minimap
Fix minimap updating in shader tab
Diffstat (limited to 'editor')
-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 c0b5053f9d..c24a666c55 100644 --- a/editor/plugins/shader_editor_plugin.cpp +++ b/editor/plugins/shader_editor_plugin.cpp @@ -379,6 +379,8 @@ void ShaderEditor::_editor_settings_changed() { 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/navigation/smooth_scrolling")); shader_editor->get_text_edit()->set_v_scroll_speed(EditorSettings::get_singleton()->get("text_editor/navigation/v_scroll_speed")); + shader_editor->get_text_edit()->set_draw_minimap(EditorSettings::get_singleton()->get("text_editor/navigation/show_minimap")); + shader_editor->get_text_edit()->set_minimap_width((int)EditorSettings::get_singleton()->get("text_editor/navigation/minimap_width") * EDSCALE); } void ShaderEditor::_bind_methods() { |