You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Remove node_hrcr hack
This commit is contained in:
@@ -908,17 +908,12 @@ void Node::set_name(const String &p_name) {
|
||||
}
|
||||
}
|
||||
|
||||
static bool node_hrcr = false;
|
||||
static SafeRefCount node_hrcr_count;
|
||||
|
||||
void Node::init_node_hrcr() {
|
||||
node_hrcr_count.init(1);
|
||||
}
|
||||
|
||||
void Node::set_human_readable_collision_renaming(bool p_enabled) {
|
||||
node_hrcr = p_enabled;
|
||||
}
|
||||
|
||||
#ifdef TOOLS_ENABLED
|
||||
String Node::validate_child_name(Node *p_child) {
|
||||
StringName name = p_child->data.name;
|
||||
@@ -930,7 +925,7 @@ String Node::validate_child_name(Node *p_child) {
|
||||
void Node::_validate_child_name(Node *p_child, bool p_force_human_readable) {
|
||||
/* Make sure the name is unique */
|
||||
|
||||
if (node_hrcr || p_force_human_readable) {
|
||||
if (p_force_human_readable) {
|
||||
//this approach to autoset node names is human readable but very slow
|
||||
//it's turned on while running in the editor
|
||||
|
||||
|
||||
Reference in New Issue
Block a user