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
path: root/source
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2021-10-12 15:24:25 +0300
committerHans Goudey <h.goudey@me.com>2021-10-12 15:24:25 +0300
commit3a03d6c8519e3b12d5f3a359e3b8eccfe01ec6af (patch)
tree2a79ec9121d1070e8c151fab696041fe4ca20508 /source
parenta06435e43a6516207c617c2b4ad9961f865b66d8 (diff)
Fix: Incorrect error message in set spline resolution node
Caused by my own refactoring before committing the patch.
Diffstat (limited to 'source')
-rw-r--r--source/blender/nodes/geometry/nodes/node_geo_set_spline_resolution.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_set_spline_resolution.cc b/source/blender/nodes/geometry/nodes/node_geo_set_spline_resolution.cc
index fc8706f3223..ce50f1a29c6 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_set_spline_resolution.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_set_spline_resolution.cc
@@ -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;