From 55700ac3906f182be8d3dff6f7d63cc27463d91b Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Fri, 19 Feb 2021 13:50:38 -0600 Subject: Cleanup: Fix clang tidy warning 0 cannot be used to initialize the whole settings struct. --- .../nodes/geometry/nodes/node_geo_subdivision_surface_simple.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source/blender/nodes') 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); -- cgit v1.2.3