From 8591a1bd8013cfeadd806ea882a5c2e7ba6d604c Mon Sep 17 00:00:00 2001 From: DualMatrix Date: Tue, 14 Aug 2018 23:36:00 +0200 Subject: [PATCH] Fixed error spam in create node dialog with custom types. This should fix #20789 --- editor/create_dialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/create_dialog.cpp b/editor/create_dialog.cpp index 5dd5b7fcc55..aa70c5aa15e 100644 --- a/editor/create_dialog.cpp +++ b/editor/create_dialog.cpp @@ -330,7 +330,7 @@ void CreateDialog::_update_search() { break; } - type = ClassDB::get_parent_class(type); + type = cpp_type ? ClassDB::get_parent_class(type) : ed.script_class_get_base(type); } if (found)