Fix T92030: crash when hovering over socket

This is the same fix as in rB24a965bb16c22e33752dfb6c22105b96a8649aeb.
This commit is contained in:
Jacques Lucke 2021-10-14 18:02:09 +02:00
parent a0f269f682
commit 5e8775a8da
Notes: blender-bot 2023-02-13 17:28:50 +01:00
Referenced by issue #92030, Geometry Nodes: Crash when hovering over socket.
1 changed files with 1 additions and 0 deletions

View File

@ -207,6 +207,7 @@ class ProximityFunction : public fn::MultiFunction {
static void geo_node_proximity_exec(GeoNodeExecParams params)
{
GeometrySet geometry_set_target = params.extract_input<GeometrySet>("Target");
geometry_set_target.ensure_owns_direct_data();
auto return_default = [&]() {
params.set_output("Position", fn::make_constant_field<float3>({0.0f, 0.0f, 0.0f}));