Fix T96160: freezing when using multiple Handle Type Selection nodes

Differential Revision: https://developer.blender.org/D14245
This commit is contained in:
Jacques Lucke 2022-03-04 15:21:18 +01:00
parent 769ae5c866
commit 45079b169d
Notes: blender-bot 2023-02-14 07:30:31 +01:00
Referenced by issue #96189, Undo in geometry nodes not working Blender 3.1.0 RC
Referenced by issue #96160, GN: freeze on updating node input value
1 changed files with 0 additions and 1 deletions

View File

@ -126,7 +126,6 @@ class HandleTypeFieldInput final : public GeometryFieldInput {
bool is_equal_to(const fn::FieldNode &other) const override
{
return dynamic_cast<const HandleTypeFieldInput *>(&other) != nullptr;
if (const HandleTypeFieldInput *other_handle_selection =
dynamic_cast<const HandleTypeFieldInput *>(&other)) {
return mode_ == other_handle_selection->mode_ && type_ == other_handle_selection->type_;