diff options
author | Jacques Lucke <jacques@blender.org> | 2021-10-14 19:02:09 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-10-14 19:02:22 +0300 |
commit | 5e8775a8da93292a6d8ef0eed3b89dea40c94399 (patch) | |
tree | d46a2e8aa88f45daf8b029028ac73fe86a3cfa75 | |
parent | a0f269f682dab848afc80cd322d04a0c4a815cae (diff) |
Fix T92030: crash when hovering over socket
This is the same fix as in rB24a965bb16c22e33752dfb6c22105b96a8649aeb.
-rw-r--r-- | source/blender/nodes/geometry/nodes/node_geo_proximity.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_proximity.cc b/source/blender/nodes/geometry/nodes/node_geo_proximity.cc index 30d025953af..02694a4a496 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_proximity.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_proximity.cc @@ -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})); |