Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_boolean.c
| Show First 20 Lines • Show All 157 Lines • ▼ Show 20 Lines | static Mesh *applyModifier(ModifierData *md, const ModifierEvalContext *ctx, Mesh *mesh) | ||||
| Mesh *result = mesh; | Mesh *result = mesh; | ||||
| Mesh *mesh_other; | Mesh *mesh_other; | ||||
| if (bmd->object == NULL) { | if (bmd->object == NULL) { | ||||
| return result; | return result; | ||||
| } | } | ||||
| Object *other = DEG_get_evaluated_object(ctx->depsgraph, bmd->object); | Object *other = bmd->object; | ||||
| mesh_other = BKE_modifier_get_evaluated_mesh_from_evaluated_object(other, false); | mesh_other = BKE_modifier_get_evaluated_mesh_from_evaluated_object(other, false); | ||||
| if (mesh_other) { | if (mesh_other) { | ||||
| Object *object = ctx->object; | Object *object = ctx->object; | ||||
| /* when one of objects is empty (has got no faces) we could speed up | /* when one of objects is empty (has got no faces) we could speed up | ||||
| * calculation a bit returning one of objects' derived meshes (or empty one) | * calculation a bit returning one of objects' derived meshes (or empty one) | ||||
| * Returning mesh is depended on modifiers operation (sergey) */ | * Returning mesh is depended on modifiers operation (sergey) */ | ||||
| result = get_quick_mesh(object, mesh, other, mesh_other, bmd->operation); | result = get_quick_mesh(object, mesh, other, mesh_other, bmd->operation); | ||||
| ▲ Show 20 Lines • Show All 190 Lines • Show Last 20 Lines | |||||