Fix: Geometry Nodes: Wrong hash of Shortest Edge Path field

This could cause too many comparisons when deduplicating
field inputs for evaluation.

Pull Request: https://projects.blender.org/blender/blender/pulls/117391
This commit is contained in:
Iliya Katueshenock
2024-01-22 14:00:03 +01:00
committed by Hans Goudey
parent 311ca3e6af
commit 801e24379e

View File

@@ -146,8 +146,7 @@ class ShortestEdgePathsNextVertFieldInput final : public bke::MeshFieldInput {
uint64_t hash() const override
{
/* Some random constant hash. */
return 8466507837;
return get_default_hash_2(end_selection_, cost_);
}
bool is_equal_to(const fn::FieldNode &other) const override