diff --git a/source/blender/nodes/geometry/nodes/node_geo_curve_endpoint_selection.cc b/source/blender/nodes/geometry/nodes/node_geo_curve_endpoint_selection.cc index c5a1d645b83..5ad5be7b90e 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_curve_endpoint_selection.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_curve_endpoint_selection.cc @@ -80,18 +80,18 @@ class EndpointFieldInput final : public bke::CurvesFieldInput { return VArray::ForContainer(std::move(selection)); }; - void for_each_field_input_recursive(FunctionRef fn) const override + void for_each_field_input_recursive(FunctionRef fn) const final { start_size_.node().for_each_field_input_recursive(fn); end_size_.node().for_each_field_input_recursive(fn); } - uint64_t hash() const override + uint64_t hash() const final { return get_default_hash(start_size_, end_size_); } - bool is_equal_to(const fn::FieldNode &other) const override + bool is_equal_to(const fn::FieldNode &other) const final { if (const EndpointFieldInput *other_endpoint = dynamic_cast( &other)) @@ -101,7 +101,7 @@ class EndpointFieldInput final : public bke::CurvesFieldInput { return false; } - std::optional preferred_domain(const CurvesGeometry & /*curves*/) const + std::optional preferred_domain(const bke::CurvesGeometry & /*curves*/) const final { return AttrDomain::Point; } diff --git a/source/blender/nodes/geometry/nodes/node_geo_curve_handle_type_selection.cc b/source/blender/nodes/geometry/nodes/node_geo_curve_handle_type_selection.cc index 85ba323c1e6..b5cbe540599 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_curve_handle_type_selection.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_curve_handle_type_selection.cc @@ -98,12 +98,12 @@ class HandleTypeFieldInput final : public bke::CurvesFieldInput { return VArray::ForContainer(std::move(selection)); } - uint64_t hash() const override + uint64_t hash() const final { return get_default_hash(int(mode_), int(type_)); } - bool is_equal_to(const fn::FieldNode &other) const override + bool is_equal_to(const fn::FieldNode &other) const final { if (const HandleTypeFieldInput *other_handle_selection = dynamic_cast(&other)) @@ -113,7 +113,7 @@ class HandleTypeFieldInput final : public bke::CurvesFieldInput { return false; } - std::optional preferred_domain(const CurvesGeometry & /*curves*/) const + std::optional preferred_domain(const bke::CurvesGeometry & /*curves*/) const final { return AttrDomain::Point; } diff --git a/source/blender/nodes/geometry/nodes/node_geo_curve_spline_parameter.cc b/source/blender/nodes/geometry/nodes/node_geo_curve_spline_parameter.cc index 11b59bdae17..dcfd0ed961e 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_curve_spline_parameter.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_curve_spline_parameter.cc @@ -264,17 +264,17 @@ class IndexOnSplineFieldInput final : public bke::CurvesFieldInput { return VArray::ForContainer(std::move(result)); } - uint64_t hash() const override + uint64_t hash() const final { return 4536246522; } - bool is_equal_to(const fn::FieldNode &other) const override + bool is_equal_to(const fn::FieldNode &other) const final { return dynamic_cast(&other) != nullptr; } - std::optional preferred_domain(const CurvesGeometry & /*curves*/) const + std::optional preferred_domain(const bke::CurvesGeometry & /*curves*/) const final { return AttrDomain::Point; } diff --git a/source/blender/nodes/geometry/nodes/node_geo_input_curve_handles.cc b/source/blender/nodes/geometry/nodes/node_geo_input_curve_handles.cc index 32dc5175d29..b1a2d954858 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_input_curve_handles.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_input_curve_handles.cc @@ -72,17 +72,17 @@ class HandlePositionFieldInput final : public bke::CurvesFieldInput { VArray::ForContainer(std::move(output)), AttrDomain::Point, domain); } - void for_each_field_input_recursive(FunctionRef fn) const override + void for_each_field_input_recursive(FunctionRef fn) const final { relative_.node().for_each_field_input_recursive(fn); } - uint64_t hash() const override + uint64_t hash() const final { return get_default_hash(relative_, left_); } - bool is_equal_to(const fn::FieldNode &other) const override + bool is_equal_to(const fn::FieldNode &other) const final { if (const HandlePositionFieldInput *other_handle = dynamic_cast(&other)) @@ -92,7 +92,7 @@ class HandlePositionFieldInput final : public bke::CurvesFieldInput { return false; } - std::optional preferred_domain(const CurvesGeometry & /*curves*/) const + std::optional preferred_domain(const bke::CurvesGeometry & /*curves*/) const final { return AttrDomain::Point; }