You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
-Concatenating arrays keeps the shared property if any of the arrays is shared. Fixes #1646
This commit is contained in:
@@ -1075,6 +1075,7 @@ GDParser::Node* GDParser::_reduce_expression(Node *p_node,bool p_to_const) {
|
||||
|
||||
ConstantNode *cn = alloc_node<ConstantNode>();
|
||||
Array arr(!p_to_const);
|
||||
//print_line("mk array "+itos(!p_to_const));
|
||||
arr.resize(an->elements.size());
|
||||
for(int i=0;i<an->elements.size();i++) {
|
||||
ConstantNode *acn = static_cast<ConstantNode*>(an->elements[i]);
|
||||
|
||||
Reference in New Issue
Block a user