mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-25 18:39:18 +01:00
print_stray_nodes() also prints node's script
This commit is contained in:
parent
7eca7de502
commit
c529ed6ef5
@ -2842,7 +2842,16 @@ static void _Node_debug_sn(Object *p_obj) {
|
|||||||
} else {
|
} else {
|
||||||
path = String(p->get_name()) + "/" + p->get_path_to(n);
|
path = String(p->get_name()) + "/" + p->get_path_to(n);
|
||||||
}
|
}
|
||||||
print_line(itos(p_obj->get_instance_id()) + " - Stray Node: " + path + " (Type: " + n->get_class() + ")");
|
|
||||||
|
String script_file_string;
|
||||||
|
if (!n->get_script().is_null()) {
|
||||||
|
Ref<Script> script = n->get_script();
|
||||||
|
if (script.is_valid()) {
|
||||||
|
script_file_string = ", Script: " + script->get_path();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
print_line(itos(p_obj->get_instance_id()) + " - Stray Node: " + path + " (Type: " + n->get_class() + script_file_string + ")");
|
||||||
}
|
}
|
||||||
#endif // DEBUG_ENABLED
|
#endif // DEBUG_ENABLED
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user