Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/DerivedMesh.c
| Context not available. | |||||
| int uid; | int uid; | ||||
| if (ob) { | if (ob) { | ||||
| kb = BLI_findlink(&me->key->block, ob->shapenr - 1); | kb = BLI_findlink(&me->key->block, ob->shapenr); | ||||
| if (kb) { | if (kb) { | ||||
| uid = kb->uid; | uid = kb->uid; | ||||
| } | } | ||||
| else { | else { | ||||
| printf("%s: error - could not find active shapekey %d!\n", | printf("%s: error - could not find active shapekey %d!\n", | ||||
| __func__, ob->shapenr - 1); | __func__, ob->shapenr); | ||||
| uid = INT_MAX; | uid = INT_MAX; | ||||
| } | } | ||||
| Context not available. | |||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| if (build_shapekey_layers && me->key && (kb = BLI_findlink(&me->key->block, ob->shapenr - 1))) { | if (build_shapekey_layers && me->key && (kb = BLI_findlink(&me->key->block, ob->shapenr))) { | ||||
| BKE_keyblock_convert_to_mesh(kb, me); | BKE_keyblock_convert_to_mesh(kb, me); | ||||
| } | } | ||||
| Context not available. | |||||