Merge branch 'master' into blender2.8
This commit is contained in:
commit
3b7f630a54
|
@ -1192,7 +1192,12 @@ bool data_transfer_layersmapping_vgroups(
|
|||
|
||||
if (fromlayers >= 0) {
|
||||
idx_src = fromlayers;
|
||||
BLI_assert(idx_src < BLI_listbase_count(&ob_src->defbase));
|
||||
if (idx_src >= BLI_listbase_count(&ob_src->defbase)) {
|
||||
/* This can happen when vgroups are removed from source object...
|
||||
* Remapping would be really tricky here, we'd need to go over all objects in Main everytime we delete
|
||||
* a vgroup... for now, simpler and safer to abort. */
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else if ((idx_src = ob_src->actdef - 1) == -1) {
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue