Fix T68710: crash on applying modifier after removing all shape keys

This was a mistake in rB87629b2a7443

`BKE_object_shapekey_free` would never return `true`, so DEG updates
would not happen...
So `ob->shapenr` was not up-to-date etc., leading to crash in
`BKE_mesh_nomain_to_mesh` shapekey handling...

Reviewers: brecht

Maniphest Tasks: T68710

Differential Revision: https://developer.blender.org/D5501
This commit is contained in:
Philipp Oeser 2019-08-16 12:52:40 +02:00
parent f8920bd8c7
commit 13c9df10a8
Notes: blender-bot 2023-02-14 01:12:20 +01:00
Referenced by issue #68710, 2.80 Segfault on applying modifier after shape keys are removed
1 changed files with 1 additions and 1 deletions

View File

@ -3587,7 +3587,7 @@ bool BKE_object_shapekey_free(Main *bmain, Object *ob)
BKE_id_free_us(bmain, key);
return false;
return true;
}
bool BKE_object_shapekey_remove(Main *bmain, Object *ob, KeyBlock *kb)