From 8835ac2a2a4d5486958cc2e3e9463f604268b760 Mon Sep 17 00:00:00 2001 From: Elise Date: Sat, 2 Aug 2025 00:38:20 +1000 Subject: [PATCH] Fix inheriting from abstract classes dialog --- editor/gui/create_dialog.cpp | 12 +++++++++--- editor/gui/create_dialog.h | 2 ++ editor/script/script_create_dialog.cpp | 1 + 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/editor/gui/create_dialog.cpp b/editor/gui/create_dialog.cpp index 31748864b469..9c8a6305bfdc 100644 --- a/editor/gui/create_dialog.cpp +++ b/editor/gui/create_dialog.cpp @@ -76,6 +76,10 @@ void CreateDialog::popup_create(bool p_dont_clear, bool p_replace_mode, const St } } +void CreateDialog::for_inherit() { + allow_abstract_scripts = true; +} + void CreateDialog::_fill_type_list() { List complete_type_list; ClassDB::get_class_list(&complete_type_list); @@ -222,7 +226,7 @@ bool CreateDialog::_should_hide_type(const StringName &p_type) const { // Abstract scripts cannot be instantiated. String path = ScriptServer::get_global_class_path(p_type); Ref