We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67fe051 commit f37472fCopy full SHA for f37472f
editor/create_dialog.cpp
@@ -198,7 +198,7 @@ bool CreateDialog::_should_hide_type(const StringName &p_type) const {
198
// Abstract scripts cannot be instantiated.
199
String path = ScriptServer::get_global_class_path(p_type);
200
Ref<Script> scr = ResourceLoader::load(path, "Script");
201
- return scr->is_abstract();
+ return scr.is_null() || scr->is_abstract();
202
}
203
204
return false;
0 commit comments