Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_particlesystem.c
| Show First 20 Lines • Show All 162 Lines • ▼ Show 20 Lines | if (!psmd->mesh_final->runtime.deformed_only) { | ||||
| * them to the final mesh (typically subdivision surfaces). */ | * them to the final mesh (typically subdivision surfaces). */ | ||||
| Mesh *mesh_original = NULL; | Mesh *mesh_original = NULL; | ||||
| if (ctx->object->type == OB_MESH) { | if (ctx->object->type == OB_MESH) { | ||||
| BMEditMesh *em = BKE_editmesh_from_object(ctx->object); | BMEditMesh *em = BKE_editmesh_from_object(ctx->object); | ||||
| if (em) { | if (em) { | ||||
| /* In edit mode get directly from the edit mesh. */ | /* In edit mode get directly from the edit mesh. */ | ||||
| psmd->mesh_original = BKE_mesh_from_bmesh_for_eval_nomain(em->bm, NULL); | psmd->mesh_original = BKE_mesh_from_bmesh_for_eval_nomain(em->bm, NULL, mesh); | ||||
| } | } | ||||
| else { | else { | ||||
| /* Otherwise get regular mesh. */ | /* Otherwise get regular mesh. */ | ||||
| mesh_original = ctx->object->data; | mesh_original = ctx->object->data; | ||||
| } | } | ||||
| } | } | ||||
| else { | else { | ||||
| mesh_original = mesh_src; | mesh_original = mesh_src; | ||||
| ▲ Show 20 Lines • Show All 101 Lines • Show Last 20 Lines | |||||