Fixed bug in instance state ordering, closes #3904

This commit is contained in:
Juan Linietsky 2016-06-28 09:47:03 -03:00
parent 41a26528e4
commit 8e1c0f287d
2 changed files with 4 additions and 4 deletions

View file

@ -375,7 +375,7 @@ Error SceneState::_parse_node(Node *p_owner,Node *p_node,int p_parent_idx, Map<S
PackState ps;
ps.node=node;
ps.state=state;
pack_state_stack.push_front(ps);
pack_state_stack.push_back(ps);
instanced_by_owner=false;
}
}
@ -545,6 +545,7 @@ https://github.com/godotengine/godot/issues/3127
}
#endif
if (exists) {
//check if already exists and did not change
@ -556,6 +557,7 @@ https://github.com/godotengine/godot/issues/3127
if (Math::abs(a-b)<CMP_EPSILON)
continue;
} else if (bool(Variant::evaluate(Variant::OP_EQUAL,value,original))) {
continue;
}
}

View file

@ -830,12 +830,10 @@ void EditorFileSystem::_scan_fs_changes(EditorFileSystemDirectory *p_dir,const S
}
}
da->list_dir_end();
memdelete(da);
}
for(int i=0;i<p_dir->files.size();i++) {