Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2021-02-19 22:50:38 +0300
committerHans Goudey <h.goudey@me.com>2021-02-19 22:50:38 +0300
commit55700ac3906f182be8d3dff6f7d63cc27463d91b (patch)
treefc84b7417e551a92458ce77aef1eba4e9a8093c9 /source/blender/nodes
parent4891d4b3d1f38bde32d939153fe8f7d66f249cc7 (diff)
Cleanup: Fix clang tidy warning
0 cannot be used to initialize the whole settings struct.
Diffstat (limited to 'source/blender/nodes')
-rw-r--r--source/blender/nodes/geometry/nodes/node_geo_subdivision_surface_simple.cc5
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);