diff --git a/source/blender/nodes/intern/geometry_nodes_lazy_function.cc b/source/blender/nodes/intern/geometry_nodes_lazy_function.cc index 4532d1e2760..494ead61119 100644 --- a/source/blender/nodes/intern/geometry_nodes_lazy_function.cc +++ b/source/blender/nodes/intern/geometry_nodes_lazy_function.cc @@ -558,7 +558,7 @@ bool implicitly_convert_socket_value(const bke::bNodeSocketType &from_type, void *r_to_value) { BLI_assert(from_value != r_to_value); - if (&from_type == &to_type) { + if (from_type.type == to_type.type) { from_type.geometry_nodes_cpp_type->copy_construct(from_value, r_to_value); return true; } @@ -609,7 +609,7 @@ const LazyFunction *build_implicit_conversion_lazy_function(const bke::bNodeSock if (!from_type.geometry_nodes_cpp_type || !to_type.geometry_nodes_cpp_type) { return nullptr; } - if (&from_type == &to_type) { + if (from_type.type == to_type.type) { return &scope.construct(*from_type.geometry_nodes_cpp_type); } const bke::DataTypeConversions &conversions = bke::get_implicit_type_conversions(); diff --git a/tests/files/modeling/geometry_nodes/utilities/muted_groups_different_input_subtype.blend b/tests/files/modeling/geometry_nodes/utilities/muted_groups_different_input_subtype.blend new file mode 100644 index 00000000000..01c0594e91a --- /dev/null +++ b/tests/files/modeling/geometry_nodes/utilities/muted_groups_different_input_subtype.blend @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4e03f9c7ccbe5f506bef459acf7e5f499a9a70e8ec23a38eeef497451f9f08d0 +size 497152