Don't update inspector when invisible
This commit is contained in:
parent
4d4f7291ed
commit
86c66ffed4
1 changed files with 5 additions and 2 deletions
|
|
@ -3845,6 +3845,11 @@ void EditorInspector::update_tree() {
|
|||
return;
|
||||
}
|
||||
|
||||
if (!is_visible_in_tree()) {
|
||||
update_tree_pending = true;
|
||||
return;
|
||||
}
|
||||
|
||||
bool root_inspector_was_following_focus = get_root_inspector()->is_following_focus();
|
||||
if (root_inspector_was_following_focus) {
|
||||
// Temporarily disable focus following on the root inspector to avoid jumping while the inspector is updating.
|
||||
|
|
@ -5911,8 +5916,6 @@ void EditorInspector::_bind_methods() {
|
|||
}
|
||||
|
||||
EditorInspector::EditorInspector() {
|
||||
object = nullptr;
|
||||
|
||||
base_vbox = memnew(VBoxContainer);
|
||||
base_vbox->set_theme_type_variation(SNAME("EditorInspectorContainer"));
|
||||
base_vbox->set_h_size_flags(SIZE_EXPAND_FILL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue