Fix: Compile error in field input

Instead of essentially hashing a bool, just use a ternary operator.

Differential Revision: https://developer.blender.org/D13494
This commit is contained in:
Hans Goudey 2021-12-06 15:47:09 -05:00
parent 0ed254574f
commit 5705db5bb3
1 changed files with 2 additions and 2 deletions

View File

@ -85,7 +85,7 @@ class EdgeVerticesFieldInput final : public GeometryFieldInput {
uint64_t hash() const override
{
return get_default_hash_2(vertex_, 9872922352ULL);
return vertex_ == VERTEX_ONE ? 23847562893465 : 92384598734567;
}
bool is_equal_to(const fn::FieldNode &other) const override
@ -147,7 +147,7 @@ class EdgePositionFieldInput final : public GeometryFieldInput {
uint64_t hash() const override
{
return get_default_hash_2(vertex_, 2359867235ULL);
return vertex_ == VERTEX_ONE ? 987456978362 : 374587679866;
}
bool is_equal_to(const fn::FieldNode &other) const override