mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Make changes for simplified ObjectDB::get_instance() casting
This commit is contained in:
parent
157f8805c2
commit
a39897953d
15 changed files with 30 additions and 30 deletions
|
@ -153,7 +153,7 @@ void _physics_interpolation_warning(const char *p_function, const char *p_file,
|
|||
String node_name;
|
||||
if (p_id != 0) {
|
||||
if (ObjectDB::get_instance(p_id)) {
|
||||
Node *node = Object::cast_to<Node>(ObjectDB::get_instance(p_id));
|
||||
Node *node = ObjectDB::get_instance<Node>(p_id);
|
||||
if (node && node->is_inside_tree()) {
|
||||
node_name = "\"" + String(node->get_path()) + "\"";
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue