1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Make MissingNode/MissingResource non-virtual and hide from dialogs

This allows ClassDB to get the default values for inherited properties.
The `MissingNode` and `MissingResource` types are excluded from the create
dialog and the inspector's Resource selector.
This commit is contained in:
Raul Santos
2025-10-09 23:25:51 +02:00
parent 295e465fe4
commit 6faa4e369a
4 changed files with 18 additions and 4 deletions

View File

@@ -856,6 +856,8 @@ CreateDialog::CreateDialog() {
type_blacklist.insert("PluginScript"); // PluginScript must be initialized before use, which is not possible here.
type_blacklist.insert("ScriptCreateDialog"); // This is an exposed editor Node that doesn't have an Editor prefix.
type_blacklist.insert("MissingNode");
type_blacklist.insert("MissingResource");
HSplitContainer *hsc = memnew(HSplitContainer);
add_child(hsc);