Merge pull request #93602 from aaronp64/inspector_latency
Improve Editor Inspector/Theme item lookup performance
This commit is contained in:
commit
091212b4f1
16 changed files with 140 additions and 115 deletions
|
|
@ -511,7 +511,7 @@ void EditorNode::_update_theme(bool p_skip_creation) {
|
|||
DisplayServer::set_early_window_clear_color_override(true, theme->get_color(SNAME("background"), EditorStringName(Editor)));
|
||||
}
|
||||
|
||||
List<Ref<Theme>> editor_themes;
|
||||
Vector<Ref<Theme>> editor_themes;
|
||||
editor_themes.push_back(theme);
|
||||
editor_themes.push_back(ThemeDB::get_singleton()->get_default_theme());
|
||||
|
||||
|
|
@ -580,7 +580,7 @@ void EditorNode::update_preview_themes(int p_mode) {
|
|||
return; // Too early.
|
||||
}
|
||||
|
||||
List<Ref<Theme>> preview_themes;
|
||||
Vector<Ref<Theme>> preview_themes;
|
||||
|
||||
switch (p_mode) {
|
||||
case CanvasItemEditor::THEME_PREVIEW_PROJECT:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue