[Bf-blender-cvs] [55700ac3906] master: Cleanup: Fix clang tidy warning

Hans Goudey noreply at git.blender.org
Fri Feb 19 20:50:48 CET 2021


Commit: 55700ac3906f182be8d3dff6f7d63cc27463d91b
Author: Hans Goudey
Date:   Fri Feb 19 13:50:38 2021 -0600
Branches: master
https://developer.blender.org/rB55700ac3906f182be8d3dff6f7d63cc27463d91b

Cleanup: Fix clang tidy warning

0 cannot be used to initialize the whole settings struct.

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

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

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

diff --git a/source/blender/nodes/geometry/nodes/node_geo_subdivision_surface_simple.cc b/source/blender/nodes/geometry/nodes/node_geo_subdivision_surface_simple.cc
index f6ea68fb63f..2a0cb727cd6 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_subdivision_surface_simple.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_subdivision_surface_simple.cc
@@ -70,11 +70,14 @@ static void geo_node_subdivision_surface_simple_exec(GeoNodeExecParams params)
   mesh_settings.use_optimal_display = false;
 
   /* Initialize subdivision settings. */
-  SubdivSettings subdiv_settings = {0};
+  SubdivSettings subdiv_settings;
   subdiv_settings.is_simple = true;
   subdiv_settings.is_adaptive = false;
   subdiv_settings.use_creases = false;
   subdiv_settings.level = 1;
+  subdiv_settings.vtx_boundary_interpolation = BKE_subdiv_vtx_boundary_interpolation_from_subsurf(
+      0);
+  subdiv_settings.fvar_linear_interpolation = BKE_subdiv_fvar_interpolation_from_uv_smooth(0);
 
   /* Apply subdivision from mesh. */
   Subdiv *subdiv = BKE_subdiv_update_from_mesh(nullptr, &subdiv_settings, mesh_in);



More information about the Bf-blender-cvs mailing list