From 4964f541e7230ecd3a48fd136d27697984b8c5e1 Mon Sep 17 00:00:00 2001 From: Relintai Date: Wed, 27 Jul 2022 15:43:40 +0200 Subject: [PATCH] Revert afc9407ae0130ec025371eb488bcfd039d01258a. --- editor/import_defaults_editor.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/editor/import_defaults_editor.cpp b/editor/import_defaults_editor.cpp index ca96035db..0eb5b3be1 100644 --- a/editor/import_defaults_editor.cpp +++ b/editor/import_defaults_editor.cpp @@ -44,7 +44,6 @@ #include "core/variant.h" #include "core/vector.h" #include "editor/editor_inspector.h" -#include "editor/editor_settings.h" #include "scene/gui/button.h" #include "scene/gui/center_container.h" #include "scene/gui/control.h" @@ -92,13 +91,10 @@ protected: void ImportDefaultsEditor::_notification(int p_what) { switch (p_what) { - case NOTIFICATION_ENTER_TREE: - case EditorSettings::NOTIFICATION_EDITOR_SETTINGS_CHANGED: { - inspector->set_property_name_style(EditorPropertyNameProcessor::get_settings_style()); - } break; - case NOTIFICATION_PREDELETE: { - inspector->edit(nullptr); + if (inspector) { + inspector->edit(nullptr); + } } break; } }