diff options
author | Hans Goudey <h.goudey@me.com> | 2021-02-19 22:50:38 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-02-19 22:50:38 +0300 |
commit | 55700ac3906f182be8d3dff6f7d63cc27463d91b (patch) | |
tree | fc84b7417e551a92458ce77aef1eba4e9a8093c9 /source | |
parent | 4891d4b3d1f38bde32d939153fe8f7d66f249cc7 (diff) |
Cleanup: Fix clang tidy warning
0 cannot be used to initialize the whole settings struct.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/nodes/geometry/nodes/node_geo_subdivision_surface_simple.cc | 5 |
1 files changed, 4 insertions, 1 deletions
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); |