Fix: Incorrect error message in set spline resolution node

Caused by my own refactoring before committing the patch.
This commit is contained in:
Hans Goudey 2021-10-12 07:24:25 -05:00
parent a06435e43a
commit 3a03d6c851
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ static void geo_node_set_spline_resolution_exec(GeoNodeExecParams params)
bool only_poly = true;
geometry_set.modify_geometry_sets([&](GeometrySet &geometry_set) {
if (geometry_set.has_curve()) {
if (!only_poly) {
if (only_poly) {
for (const SplinePtr &spline : geometry_set.get_curve_for_read()->splines()) {
if (ELEM(spline->type(), Spline::Type::Bezier, Spline::Type::NURBS)) {
only_poly = false;