Differential D14245 Diff 48919 source/blender/nodes/geometry/nodes/node_geo_curve_handle_type_selection.cc
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/geometry/nodes/node_geo_curve_handle_type_selection.cc
| Show First 20 Lines • Show All 120 Lines • ▼ Show 20 Lines | public: | ||||
| uint64_t hash() const override | uint64_t hash() const override | ||||
| { | { | ||||
| return get_default_hash_2((int)mode_, (int)type_); | return get_default_hash_2((int)mode_, (int)type_); | ||||
| } | } | ||||
| bool is_equal_to(const fn::FieldNode &other) const override | bool is_equal_to(const fn::FieldNode &other) const override | ||||
| { | { | ||||
| return dynamic_cast<const HandleTypeFieldInput *>(&other) != nullptr; | |||||
| if (const HandleTypeFieldInput *other_handle_selection = | if (const HandleTypeFieldInput *other_handle_selection = | ||||
| dynamic_cast<const HandleTypeFieldInput *>(&other)) { | dynamic_cast<const HandleTypeFieldInput *>(&other)) { | ||||
| return mode_ == other_handle_selection->mode_ && type_ == other_handle_selection->type_; | return mode_ == other_handle_selection->mode_ && type_ == other_handle_selection->type_; | ||||
| } | } | ||||
| return false; | return false; | ||||
| } | } | ||||
| }; | }; | ||||
| Show All 32 Lines | |||||