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

Merge pull request #106117 from jaydensipe/zoom-performance-smoooooth

Improve zoom performance in `Script` and `Shader` editors
This commit is contained in:
Thaddeus Crews
2025-05-09 11:29:12 -05:00
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);
}