Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2021-09-30 14:33:21 +0300
committerJacques Lucke <jacques@blender.org>2021-09-30 14:33:21 +0300
commit3453b22b1e9cd11ca26960403cbc7b75bfcbe119 (patch)
tree5526292f4d39e6842ca80ce1e2ca7de1c7952b9d
parent9628ef413518e5ddda9c1c8106ce4fecbd1ae7c1 (diff)
Fix: Curve to Mesh node outputs original curve
It should only output the new mesh (and potentially instances that are processed separately).
-rw-r--r--source/blender/nodes/geometry/nodes/node_geo_curve_to_mesh.cc1
1 files changed, 1 insertions, 0 deletions
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));