[Bf-blender-cvs] [3453b22b1e9] master: Fix: Curve to Mesh node outputs original curve

Jacques Lucke noreply at git.blender.org
Thu Sep 30 13:33:32 CEST 2021


Commit: 3453b22b1e9cd11ca26960403cbc7b75bfcbe119
Author: Jacques Lucke
Date:   Thu Sep 30 13:33:21 2021 +0200
Branches: master
https://developer.blender.org/rB3453b22b1e9cd11ca26960403cbc7b75bfcbe119

Fix: Curve to Mesh node outputs original curve

It should only output the new mesh (and potentially instances
that are processed separately).

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

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

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

diff --git a/source/blender/nodes/geometry/nodes/node_geo_curve_to_mesh.cc b/source/blender/nodes/geometry/nodes/node_geo_curve_to_mesh.cc
index f7cef9bbf63..b123820989f 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_curve_to_mesh.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_curve_to_mesh.cc
@@ -75,6 +75,7 @@ static void geo_node_curve_to_mesh_exec(GeoNodeExecParams params)
 
   curve_set.modify_geometry_sets([&](GeometrySet &geometry_set) {
     geometry_set_curve_to_mesh(geometry_set, profile_set, params);
+    geometry_set.keep_only({GEO_COMPONENT_TYPE_MESH, GEO_COMPONENT_TYPE_INSTANCES});
   });
 
   params.set_output("Mesh", std::move(curve_set));



More information about the Bf-blender-cvs mailing list