1
0
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:
Juan Linietsky
2015-04-07 21:18:46 -03:00
parent b36e41cb71
commit 22997294fa
4 changed files with 6 additions and 3 deletions

View File

@@ -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]);