Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_weightvgproximity.c
| Show First 20 Lines • Show All 392 Lines • ▼ Show 20 Lines | #endif | ||||
| /* Check if we can just return the original mesh. | /* Check if we can just return the original mesh. | ||||
| * Must have verts and therefore verts assigned to vgroups to do anything useful! | * Must have verts and therefore verts assigned to vgroups to do anything useful! | ||||
| */ | */ | ||||
| if ((numVerts == 0) || BLI_listbase_is_empty(&ctx->object->defbase)) { | if ((numVerts == 0) || BLI_listbase_is_empty(&ctx->object->defbase)) { | ||||
| return mesh; | return mesh; | ||||
| } | } | ||||
| /* Get our target object. */ | /* Get our target object. */ | ||||
| obr = DEG_get_evaluated_object(ctx->depsgraph, wmd->proximity_ob_target); | obr = wmd->proximity_ob_target; | ||||
| if (obr == NULL) { | if (obr == NULL) { | ||||
| return mesh; | return mesh; | ||||
| } | } | ||||
| /* Get vgroup idx from its name. */ | /* Get vgroup idx from its name. */ | ||||
| defgrp_index = defgroup_name_index(ob, wmd->defgrp_name); | defgrp_index = defgroup_name_index(ob, wmd->defgrp_name); | ||||
| if (defgrp_index == -1) { | if (defgrp_index == -1) { | ||||
| return mesh; | return mesh; | ||||
| ▲ Show 20 Lines • Show All 183 Lines • Show Last 20 Lines | |||||