Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2020-07-03 01:20:21 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-07-03 01:21:56 +0300
commit5a13f682ee5f55717c2fbc35371cd5bf58829b88 (patch)
tree76b001a1a199923fafc065c60c90b7055d2f5ba1 /source/blender/blenkernel/intern/object_update.c
parenta07922159d4abfeaca4db9b3f08b3f85e3a35ca9 (diff)
Fix T77559 Avoid wrong ob->imat leading to several bugs
This fixes T77559 Scale to zero in object mode unable to select
Diffstat (limited to 'source/blender/blenkernel/intern/object_update.c')
-rw-r--r--source/blender/blenkernel/intern/object_update.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/object_update.c b/source/blender/blenkernel/intern/object_update.c
index d8c3e0bf714..7f378e6e80b 100644
--- a/source/blender/blenkernel/intern/object_update.c
+++ b/source/blender/blenkernel/intern/object_update.c
@@ -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;