Fix #142749: Geometry Nodes: Add float4x4 case in get_field_type_name

When hovering on a matrix field socket, `get_field_type_name` can fail
because of missing `float4x4` case. Now it will properly return a
"Matrix Field" name.

Pull Request: https://projects.blender.org/blender/blender/pulls/142794
This commit is contained in:
YimingWu
2025-07-22 09:36:37 +02:00
committed by Lukas Tönne
parent 29b90af679
commit 346464d491

View File

@@ -564,6 +564,9 @@ class SocketTooltipBuilder {
if (base_type.is<math::Quaternion>()) {
return TIP_("Rotation Field");
}
if (base_type.is<blender::float4x4>()) {
return TIP_("Matrix Field");
}
BLI_assert_unreachable();
return TIP_("Field");
}