Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/DerivedMesh.c
| Context not available. | |||||
| * by a more flexible customdata system, but not simple */ | * by a more flexible customdata system, but not simple */ | ||||
| if (!em) { | if (!em) { | ||||
| ClothModifierData *clmd = (ClothModifierData *)modifiers_findByType(ob, eModifierType_Cloth); | ClothModifierData *clmd = (ClothModifierData *)modifiers_findByType(ob, eModifierType_Cloth); | ||||
| KeyBlock *kb = BKE_keyblock_from_key(BKE_key_from_object(ob), clmd->sim_parms->shapekey_rest); | if (clmd) { | ||||
| KeyBlock *kb = BKE_keyblock_from_key(BKE_key_from_object(ob), clmd->sim_parms->shapekey_rest); | |||||
| if (kb->data) | if (kb->data) | ||||
| return kb->data; | return kb->data; | ||||
| } | |||||
| } | } | ||||
| return NULL; | return NULL; | ||||
| Context not available. | |||||