Sort for determinism

master
Marc Gilleron 2022-07-02 22:43:40 +01:00
parent 8a9825847e
commit 8bb8bfccab
1 changed files with 3 additions and 0 deletions

View File

@ -1861,6 +1861,9 @@ uint64_t VoxelGeneratorGraph::get_output_graph_hash() const {
}
});
// Sort for determinism
std::sort(terminal_nodes.begin(), terminal_nodes.end());
std::vector<uint32_t> order;
_graph.find_dependencies(terminal_nodes, order);