Fix: Incorrect error message in set spline resolution node
Caused by my own refactoring before committing the patch.
This commit is contained in:
@@ -60,7 +60,7 @@ static void geo_node_set_spline_resolution_exec(GeoNodeExecParams params)
|
|||||||
bool only_poly = true;
|
bool only_poly = true;
|
||||||
geometry_set.modify_geometry_sets([&](GeometrySet &geometry_set) {
|
geometry_set.modify_geometry_sets([&](GeometrySet &geometry_set) {
|
||||||
if (geometry_set.has_curve()) {
|
if (geometry_set.has_curve()) {
|
||||||
if (!only_poly) {
|
if (only_poly) {
|
||||||
for (const SplinePtr &spline : geometry_set.get_curve_for_read()->splines()) {
|
for (const SplinePtr &spline : geometry_set.get_curve_for_read()->splines()) {
|
||||||
if (ELEM(spline->type(), Spline::Type::Bezier, Spline::Type::NURBS)) {
|
if (ELEM(spline->type(), Spline::Type::Bezier, Spline::Type::NURBS)) {
|
||||||
only_poly = false;
|
only_poly = false;
|
||||||
|
Reference in New Issue
Block a user