[Bf-blender-cvs] [caa88b30878] soc-2021-curve-fillet: Fixed build warnings in curve fillet node.

dilithjay noreply at git.blender.org
Tue Aug 10 19:10:47 CEST 2021


Commit: caa88b308780a5eacc7aae257dfba7534a1b372b
Author: dilithjay
Date:   Tue Aug 10 07:51:58 2021 +0530
Branches: soc-2021-curve-fillet
https://developer.blender.org/rBcaa88b308780a5eacc7aae257dfba7534a1b372b

Fixed build warnings in curve fillet node.

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

M	release/scripts/addons
M	source/blender/nodes/geometry/nodes/node_geo_curve_fillet.cc
M	source/tools

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

diff --git a/release/scripts/addons b/release/scripts/addons
index 2aa81ec3365..d54fb366442 160000
--- a/release/scripts/addons
+++ b/release/scripts/addons
@@ -1 +1 @@
-Subproject commit 2aa81ec3365c5ed2478f9783f78a38e77c0ef6c1
+Subproject commit d54fb366442e38c9a718ac55be08e0708de9afab
diff --git a/source/blender/nodes/geometry/nodes/node_geo_curve_fillet.cc b/source/blender/nodes/geometry/nodes/node_geo_curve_fillet.cc
index e6522953734..a09bb242381 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_curve_fillet.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_curve_fillet.cc
@@ -101,8 +101,8 @@ static void geo_node_curve_fillet_update(bNodeTree *UNUSED(ntree), bNode *node)
   nodeSetSocketAvailability(adaptive_socket, mode == GEO_NODE_CURVE_FILLET_ADAPTIVE);
   nodeSetSocketAvailability(user_socket, mode == GEO_NODE_CURVE_FILLET_USER_DEFINED);
 
-  const GeometryNodeCurveFilletMode radius_mode = (GeometryNodeCurveFilletMode)
-                                                      node_storage.radius_mode;
+  const GeometryNodeCurveFilletRadiusMode radius_mode = (GeometryNodeCurveFilletRadiusMode)
+                                                            node_storage.radius_mode;
 
   bNodeSocket *float_socket = user_socket->next->next;
   bNodeSocket *attribute_socket = float_socket->next;
@@ -141,8 +141,7 @@ static FilletData calculate_fillet_data_per_vertex(const float3 prev_pos,
                                                    const float3 next_pos,
                                                    const std::optional<float> arc_angle,
                                                    const std::optional<int> count,
-                                                   const float radius,
-                                                   const bool limit_radius)
+                                                   const float radius)
 {
   FilletData fd{};
   float3 vec_pos2prev = prev_pos - pos;
@@ -281,13 +280,8 @@ static Array<FilletData> calculate_fillet_data(const SplinePtr &spline,
     }
 
     /* Calculate fillet data for the vertex. */
-    fds[i] = calculate_fillet_data_per_vertex(prev_pos,
-                                              pos,
-                                              next_pos,
-                                              mode_param.angle,
-                                              mode_param.count,
-                                              radius,
-                                              mode_param.limit_radius);
+    fds[i] = calculate_fillet_data_per_vertex(
+        prev_pos, pos, next_pos, mode_param.angle, mode_param.count, radius);
 
     /* Exit from here if the radius is zero */
     if (!radius) {
@@ -385,7 +379,7 @@ static void update_bezier_handle_types(BezierSpline &dst,
 {
   MutableSpan<BezierSpline::HandleType> left_handle_types = dst.handle_types_left();
   MutableSpan<BezierSpline::HandleType> right_handle_types = dst.handle_types_right();
-  bool is_cyclic = dst.is_cyclic();
+
   for (int i = 0; i < mapping.size(); i++) {
     if (point_counts[mapping[i]] > 1) {
       /* There will always be a prev and next if point count > 1. */
diff --git a/source/tools b/source/tools
index c8579c5cf43..82e4b979ab4 160000
--- a/source/tools
+++ b/source/tools
@@ -1 +1 @@
-Subproject commit c8579c5cf43229843df505da9644b5b0b7201974
+Subproject commit 82e4b979ab424cad429a751a9a90c0e0c6ea077e



More information about the Bf-blender-cvs mailing list