[Bf-blender-cvs] [8141d4a8356] soc-2021-curve-fillet: Fixed two warnings on curve fillet code
dilithjay
noreply at git.blender.org
Sat Jul 17 13:22:17 CEST 2021
Commit: 8141d4a835645d2484c761d12790a6d08d96b46e
Author: dilithjay
Date: Sat Jul 17 16:50:56 2021 +0530
Branches: soc-2021-curve-fillet
https://developer.blender.org/rB8141d4a835645d2484c761d12790a6d08d96b46e
Fixed two warnings on curve fillet code
===================================================================
M source/blender/nodes/geometry/nodes/node_geo_curve_fillet.cc
===================================================================
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 80c2ea8acea..8a66c1d4b61 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_curve_fillet.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_curve_fillet.cc
@@ -77,7 +77,7 @@ struct FilletModeParam {
/* Distribution of radii on the curve. */
std::optional<std::string> radii_dist;
- GVArray_Typed<float> *radii;
+ GVArray_Typed<float> *radii{};
};
struct FilletData {
@@ -142,7 +142,7 @@ static FilletData calculate_fillet_data_per_vertex(const float3 prev_pos,
const std::optional<int> count,
const float radius)
{
- FilletData fd;
+ FilletData fd{};
float3 vec_pos2prev = prev_pos - pos;
float3 vec_pos2next = next_pos - pos;
normalize_v3_v3(fd.prev_dir, vec_pos2prev);
More information about the Bf-blender-cvs
mailing list