Fix T77559 Avoid wrong ob->imat leading to several bugs

This fixes T77559 Scale to zero in object mode unable to select
This commit is contained in:
Clément Foucault 2020-07-03 00:20:21 +02:00
parent a07922159d
commit 5a13f682ee
Notes: blender-bot 2023-02-14 10:48:33 +01:00
Referenced by issue #78582, Blender erorr
Referenced by issue #78575, Assert when using prop_tabs_enum
Referenced by issue #77559, Scale to zero in object mode unable to select
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ void BKE_object_eval_transform_final(Depsgraph *depsgraph, Object *ob)
DEG_debug_print_eval(depsgraph, __func__, ob->id.name, ob);
/* Make sure inverse matrix is always up to date. This way users of it
* do not need to worry about recalculating it. */
invert_m4_m4(ob->imat, ob->obmat);
invert_m4_m4_safe(ob->imat, ob->obmat);
/* Set negative scale flag in object. */
if (is_negative_m4(ob->obmat)) {
ob->transflag |= OB_NEG_SCALE;