diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-02-16 16:39:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-16 16:39:23 +0100 |
commit | 33c7f52f361961c64432cfd772909ed3ba76cd51 (patch) | |
tree | 6c86397c3797381550815c79938522a3915d58df /editor/import_defaults_editor.cpp | |
parent | b5c0a892d45b1a9df10aaf0f468252925ea2a4b9 (diff) | |
parent | 8824b6c5e9dc6a24a17452ded0c800ec267f812f (diff) |
Merge pull request #58169 from megalobyte/update-notificatin-if-to-switch-batch-B
Diffstat (limited to 'editor/import_defaults_editor.cpp')
-rw-r--r-- | editor/import_defaults_editor.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/editor/import_defaults_editor.cpp b/editor/import_defaults_editor.cpp index 767e2a7fad..ca979c094f 100644 --- a/editor/import_defaults_editor.cpp +++ b/editor/import_defaults_editor.cpp @@ -80,8 +80,10 @@ protected: }; void ImportDefaultsEditor::_notification(int p_what) { - if (p_what == NOTIFICATION_PREDELETE) { - inspector->edit(nullptr); + switch (p_what) { + case NOTIFICATION_PREDELETE: { + inspector->edit(nullptr); + } break; } } |