[Bf-blender-cvs] [5621a8ed7fb] master: Fix T88452: Point Separate crash on curve component

Hans Goudey noreply at git.blender.org
Thu May 27 15:37:24 CEST 2021


Commit: 5621a8ed7fbcd9067c576d4066e83d9640a80c49
Author: Hans Goudey
Date:   Thu May 27 09:37:19 2021 -0400
Branches: master
https://developer.blender.org/rB5621a8ed7fbcd9067c576d4066e83d9640a80c49

Fix T88452: Point Separate crash on curve component

The point separate node should create a point cloud from control points
in this case, but for now disable the node on curves to avoid the crash.

===================================================================

M	source/blender/nodes/geometry/nodes/node_geo_point_separate.cc

===================================================================

diff --git a/source/blender/nodes/geometry/nodes/node_geo_point_separate.cc b/source/blender/nodes/geometry/nodes/node_geo_point_separate.cc
index ff7e95e0221..312ca5b8c33 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_point_separate.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_point_separate.cc
@@ -127,6 +127,10 @@ static GeometrySet separate_geometry_set(const GeometrySet &set_in,
 {
   GeometrySet set_out;
   for (const GeometryComponent *component : set_in.get_components_for_read()) {
+    if (component->type() == GEO_COMPONENT_TYPE_CURVE) {
+      /* Don't support the curve component for now, even though it has a point domain. */
+      continue;
+    }
     GeometryComponent &out_component = set_out.get_component_for_write(component->type());
     separate_points_from_component(*component, out_component, mask_name, invert);
   }



More information about the Bf-blender-cvs mailing list