mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Merge pull request #106117 from jaydensipe/zoom-performance-smoooooth
Improve zoom performance in `Script` and `Shader` editors
This commit is contained in:
commit
cb0f2b5230
6 changed files with 27 additions and 29 deletions
|
|
@ -1813,9 +1813,6 @@ void CodeTextEditor::set_zoom_factor(float p_zoom_factor) {
|
|||
|
||||
zoom_button->set_text(itos(Math::round(zoom_factor * 100)) + " %");
|
||||
|
||||
if (text_editor->has_theme_font_size_override(SceneStringName(font_size))) {
|
||||
text_editor->remove_theme_font_size_override(SceneStringName(font_size));
|
||||
}
|
||||
text_editor->add_theme_font_size_override(SceneStringName(font_size), new_font_size);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue