Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2021-12-06 23:47:09 +0300
committerHans Goudey <h.goudey@me.com>2021-12-06 23:47:09 +0300
commit5705db5bb37604a208c0837e7815ce46f88a20d0 (patch)
tree15a99223932e00bfbfc5a2cdd3f25b766250d7b3 /source/blender/nodes/geometry/nodes/node_geo_input_mesh_edge_vertices.cc
parent0ed254574fc7d138e56affe4c14b72ad67b65afe (diff)
Fix: Compile error in field input
Instead of essentially hashing a bool, just use a ternary operator. Differential Revision: https://developer.blender.org/D13494
Diffstat (limited to 'source/blender/nodes/geometry/nodes/node_geo_input_mesh_edge_vertices.cc')
-rw-r--r--source/blender/nodes/geometry/nodes/node_geo_input_mesh_edge_vertices.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_input_mesh_edge_vertices.cc b/source/blender/nodes/geometry/nodes/node_geo_input_mesh_edge_vertices.cc
index 95633d14270..473bef63e92 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_input_mesh_edge_vertices.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_input_mesh_edge_vertices.cc
@@ -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