Made Vector::ptrw explicit for writing, compiler was sometimes using the wrong function,
leading to unnecesary copy on writes and reduced performance.
This commit is contained in:
@ -1198,7 +1198,7 @@ void Node::_validate_child_name(Node *p_child, bool p_force_human_readable) {
|
||||
unique = false;
|
||||
} else {
|
||||
//check if exists
|
||||
Node **childs = data.children.ptr();
|
||||
Node **childs = data.children.ptrw();
|
||||
int cc = data.children.size();
|
||||
|
||||
for (int i = 0; i < cc; i++) {
|
||||
|
||||
Reference in New Issue
Block a user