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

@ -411,7 +411,7 @@ void register_scene_types() {
OS::get_singleton()->yield(); // may take time to init
GDREGISTER_CLASS(Node);
GDREGISTER_VIRTUAL_CLASS(MissingNode);
GDREGISTER_CLASS(MissingNode);
GDREGISTER_ABSTRACT_CLASS(InstancePlaceholder);
GDREGISTER_ABSTRACT_CLASS(CanvasItem);