Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_util.c
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| else if (vertexCos) { | else if (vertexCos) { | ||||
| BKE_mesh_vert_coords_apply(mesh, vertexCos); | BKE_mesh_vert_coords_apply(mesh, vertexCos); | ||||
| } | } | ||||
| if (use_orco) { | if (use_orco) { | ||||
| BKE_mesh_orco_ensure(ob, mesh); | BKE_mesh_orco_ensure(ob, mesh); | ||||
| } | } | ||||
| } | } | ||||
| else if (ELEM(ob->type, OB_FONT, OB_CURVE, OB_SURF)) { | else if (ELEM(ob->type, OB_FONT, OB_CURVES_LEGACY, OB_SURF)) { | ||||
| /* TODO(sybren): get evaluated mesh from depsgraph once | /* TODO(sybren): get evaluated mesh from depsgraph once | ||||
| * that's properly generated for curves. */ | * that's properly generated for curves. */ | ||||
| mesh = BKE_mesh_new_nomain_from_curve(ob); | mesh = BKE_mesh_new_nomain_from_curve(ob); | ||||
| /* Currently, that may not be the case every time | /* Currently, that may not be the case every time | ||||
| * (texts e.g. tend to give issues, | * (texts e.g. tend to give issues, | ||||
| * also when deforming curve points instead of generated curve geometry... ). */ | * also when deforming curve points instead of generated curve geometry... ). */ | ||||
| if (mesh != NULL && mesh->totvert != num_verts) { | if (mesh != NULL && mesh->totvert != num_verts) { | ||||
| ▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines | |||||