1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Improve zoom performance in Script and Shader editors

This commit is contained in:
Jayden Sipe
2025-05-06 02:40:53 -04:00
parent 1a1cc0f7b0
commit a874863c46
6 changed files with 27 additions and 29 deletions

View File

@@ -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);
}