Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_surfacedeform.c
| Show First 20 Lines • Show All 1,147 Lines • ▼ Show 20 Lines | static void surfacedeformModifier_do( | ||||
| } | } | ||||
| Object *ob_target = DEG_get_evaluated_object(ctx->depsgraph, smd->target); | Object *ob_target = DEG_get_evaluated_object(ctx->depsgraph, smd->target); | ||||
| target = BKE_modifier_get_evaluated_mesh_from_evaluated_object(ob_target, false); | target = BKE_modifier_get_evaluated_mesh_from_evaluated_object(ob_target, false); | ||||
| #if 0 /* Should not be needed anymore since we always get that mesh from eval object ? */ | #if 0 /* Should not be needed anymore since we always get that mesh from eval object ? */ | ||||
| if (target == NULL && smd->verts == NULL && ob == DEG_get_original_object(ob)) { | if (target == NULL && smd->verts == NULL && ob == DEG_get_original_object(ob)) { | ||||
| /* Special case, binding happens outside of depsgraph evaluation, so we can build our own | /* Special case, binding happens outside of depsgraph evaluation, so we can build our own | ||||
| * target mesh if needed. */ | * target mesh if needed. */ | ||||
| target = mesh_create_eval_final_view(ctx->depsgraph, DEG_get_input_scene(ctx->depsgraph), smd->target, 0); | target = mesh_create_eval_final_view(ctx->depsgraph, DEG_get_input_scene(ctx->depsgraph), smd->target, CD_MASK_BAREMESH); | ||||
| free_target = target != NULL; | free_target = target != NULL; | ||||
| } | } | ||||
| #endif | #endif | ||||
| if (!target) { | if (!target) { | ||||
| modifier_setError(md, "No valid target mesh"); | modifier_setError(md, "No valid target mesh"); | ||||
| return; | return; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 117 Lines • Show Last 20 Lines | |||||