Mesh: Rewrite split edges algorithm #110661

Merged
Hans Goudey merged 78 commits from HooglyBoogly/blender:split-edges-rewrite-2 into main 2023-08-30 14:23:49 +02:00
1 changed files with 3 additions and 1 deletions
Showing only changes of commit 1d3e5c7855 - Show all commits

View File

@ -2230,7 +2230,9 @@ static bool customdata_merge_internal(const CustomData *source,
const int src_layer_flag = src_layer.flag;
if (type != last_type) {
current_type_layer_count = 0;
/* Dont exceed layer count on destination. */
const int layernum_dst = CustomData_number_of_layers(dest, type);
current_type_layer_count = layernum_dst;
max_current_type_layer_count = CustomData_layertype_layers_max(type);
last_active = src_layer.active;
last_render = src_layer.active_rnd;