[Bf-blender-cvs] [3a03d6c8519] master: Fix: Incorrect error message in set spline resolution node

Hans Goudey noreply at git.blender.org
Tue Oct 12 14:24:32 CEST 2021


Commit: 3a03d6c8519e3b12d5f3a359e3b8eccfe01ec6af
Author: Hans Goudey
Date:   Tue Oct 12 07:24:25 2021 -0500
Branches: master
https://developer.blender.org/rB3a03d6c8519e3b12d5f3a359e3b8eccfe01ec6af

Fix: Incorrect error message in set spline resolution node

Caused by my own refactoring before committing the patch.

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

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

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

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;



More information about the Bf-blender-cvs mailing list