Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_array.c
| Context not available. | |||||
| int target = full_doubles_map[prev_chunk_index]; | int target = full_doubles_map[prev_chunk_index]; | ||||
| if (target != -1) { | if (target != -1) { | ||||
| target += chunk_nverts; /* translate mapping */ | target += chunk_nverts; /* translate mapping */ | ||||
| if (full_doubles_map[target] != -1) { | if (!with_follow) { | ||||
| if (with_follow) { | /* The rule here is to not follow mapping to chunk N-2, which could be too far | ||||
| target = full_doubles_map[target]; | * so if target vertex was itself mapped, then this vertex is not mapped */ | ||||
| } | if (full_doubles_map[target] != -1) { | ||||
| else { | |||||
| /* The rule here is to not follow mapping to chunk N-2, which could be too far | |||||
| * so if target vertex was itself mapped, then this vertex is not mapped */ | |||||
| target = -1; | target = -1; | ||||
| } | } | ||||
| } | } | ||||
| Context not available. | |||||
| } | } | ||||
| /* done capping */ | /* done capping */ | ||||
| /* In case org dm has dirty normals, or we made some merging, mark normals as dirty in new dm! | |||||
| * TODO: we may need to set other dirty flags as well? | |||||
| */ | |||||
| if (use_recalc_normals) { | |||||
| result->dirty |= DM_DIRTY_NORMALS; | |||||
| } | |||||
| /* Handle merging */ | /* Handle merging */ | ||||
| tot_doubles = 0; | tot_doubles = 0; | ||||
| if (use_merge) { | if (use_merge) { | ||||
| Context not available. | |||||
| } | } | ||||
| MEM_freeN(full_doubles_map); | MEM_freeN(full_doubles_map); | ||||
| } | } | ||||
| /* In case org dm has dirty normals, or we made some merging, mark normals as dirty in new dm! | |||||
| * TODO: we may need to set other dirty flags as well? | |||||
| */ | |||||
| if (use_recalc_normals) { | |||||
| result->dirty |= DM_DIRTY_NORMALS; | |||||
| } | |||||
| return result; | return result; | ||||
| } | } | ||||
| Context not available. | |||||