Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_remesh.c
| Show First 20 Lines • Show All 179 Lines • ▼ Show 20 Lines | if (rmd->flag & MOD_REMESH_SMOOTH_SHADING) { | ||||
| int i, totpoly = result->totpoly; | int i, totpoly = result->totpoly; | ||||
| /* Apply smooth shading to output faces */ | /* Apply smooth shading to output faces */ | ||||
| for (i = 0; i < totpoly; i++) { | for (i = 0; i < totpoly; i++) { | ||||
| mpoly[i].flag |= ME_SMOOTH; | mpoly[i].flag |= ME_SMOOTH; | ||||
| } | } | ||||
| } | } | ||||
| BKE_mesh_copy_settings(result, mesh); | |||||
| BKE_mesh_calc_edges(result, true, false); | BKE_mesh_calc_edges(result, true, false); | ||||
| result->runtime.cd_dirty_vert |= CD_MASK_NORMAL; | result->runtime.cd_dirty_vert |= CD_MASK_NORMAL; | ||||
| return result; | return result; | ||||
| } | } | ||||
| #else /* !WITH_MOD_REMESH */ | #else /* !WITH_MOD_REMESH */ | ||||
| static Mesh *applyModifier(ModifierData *UNUSED(md), | static Mesh *applyModifier(ModifierData *UNUSED(md), | ||||
| Show All 35 Lines | |||||