Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/mesh/editmesh_undo.c
| Context not available. | |||||
| if (key && (key->type == KEY_RELATIVE)) { | if (key && (key->type == KEY_RELATIVE)) { | ||||
| /* Since we can't add, remove or reorder keyblocks in editmode, it's safe to assume | /* Since we can't add, remove or reorder keyblocks in editmode, it's safe to assume | ||||
| * shapenr from restored bmesh and keyblock indices are in sync. */ | * shapenr from restored bmesh and keyblock indices are in sync. */ | ||||
| const int kb_act_idx = ob->shapenr - 1; | const int kb_act_idx = ob->shapenr; | ||||
| /* If it is, let's patch the current mesh key block to its restored value. | /* If it is, let's patch the current mesh key block to its restored value. | ||||
| * Else, the offsets won't be computed and it won't matter. */ | * Else, the offsets won't be computed and it won't matter. */ | ||||
| Context not available. | |||||