From ecad3a285feabecf44aeb52c94a0d3552933bba1 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Tue, 8 Dec 2015 11:33:30 -0300 Subject: better unique name resolution, as suggested i #3017 --- scene/main/node.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/scene/main/node.cpp b/scene/main/node.cpp index 74a61643f6..a832162994 100644 --- a/scene/main/node.cpp +++ b/scene/main/node.cpp @@ -700,11 +700,7 @@ void Node::_validate_child_name(Node *p_child, bool p_force_human_readable) { if (!unique) { node_hrcr_count.ref(); -#ifdef DEBUG_ENABLED - String name = "@"+String(p_child->get_type_name())+itos(node_hrcr_count.get()); -#else - String name = "@"+itos(node_hrcr_count.get()); -#endif + String name = "@"+String(p_child->get_name())+"@"+itos(node_hrcr_count.get()); p_child->data.name=name; } } -- cgit v1.2.3