MSVS 2017 Bug - Subdiv Mesh

Apparently, struct initialization can not be empty,

Reviewers: sergey

Reviewed By: sergey

Tags: #bf_blender_2.8

Differential Revision: https://developer.blender.org/D3636
This commit is contained in:
Charlie Jolly 2018-08-22 17:01:29 +02:00 committed by Sergey Sharybin
parent cdaf5a1083
commit 686480269b
1 changed files with 1 additions and 1 deletions

View File

@ -1124,7 +1124,7 @@ Mesh *BKE_subdiv_to_mesh(
SUBDIV_STATS_SUBDIV_TO_MESH_GEOMETRY);
SubdivForeachContext foreach_context;
setup_foreach_callbacks(&foreach_context, subdiv);
SubdivMeshTLS tls = {};
SubdivMeshTLS tls = {0};
foreach_context.user_data = &subdiv_context;
foreach_context.user_data_tls_size = sizeof(SubdivMeshTLS);
foreach_context.user_data_tls = &tls;