Improve zoom performance in Script and Shader editors

This commit is contained in:
Jayden Sipe committed 2025-05-08 19:33:21 -04:00
1 parent 1a1cc0f7b0
commit a874863c46
6 files changed
+27 -29

No files matched your search

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