mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Add templated version of ObjectDB::get_instance()
This commit is contained in:
parent
594d64ec24
commit
bc9d0c7835
49 changed files with 121 additions and 104 deletions
|
|
@ -90,7 +90,7 @@ public:
|
|||
PackedStringArray get_configuration_warnings() const override;
|
||||
|
||||
Node *get_spawn_node() const {
|
||||
return spawn_node.is_valid() ? Object::cast_to<Node>(ObjectDB::get_instance(spawn_node)) : nullptr;
|
||||
return spawn_node.is_valid() ? ObjectDB::get_instance<Node>(spawn_node) : nullptr;
|
||||
}
|
||||
|
||||
void add_spawnable_scene(const String &p_path);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue