From 639c4b6f20975c47da74d0dbd669314c5cd721c1 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Sat, 19 Feb 2022 13:14:33 +0800 Subject: Fix crash in Create New Node dialog with certain user-created scripts --- editor/create_dialog.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/editor/create_dialog.cpp b/editor/create_dialog.cpp index 081f0ac868..7e59fc31c4 100644 --- a/editor/create_dialog.cpp +++ b/editor/create_dialog.cpp @@ -235,19 +235,19 @@ void CreateDialog::_add_type(const String &p_type, const TypeCategory p_type_cat } } else { if (ScriptServer::is_global_class(p_type)) { - inherits = EditorNode::get_editor_data().script_class_get_base(p_type); - if (inherits.is_empty()) { - Ref