diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-01-28 14:17:54 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-01-28 14:19:25 +0300 |
commit | 2e3433c1f7b86cabf4a6d84b5ccfa72d658c4b0a (patch) | |
tree | c168abe6ec2a5954fab95e1895d8331e97802907 /source/blender/blenkernel/intern/object_update.c | |
parent | 409a21b32e11773f6eb32596430f0fcc70faf2fe (diff) |
Fix T60127: Particles texture mapping coordinates objects
Part of the issue was a missing relation. Other part wes
aboud object's inverse matrix never being updated.
Diffstat (limited to 'source/blender/blenkernel/intern/object_update.c')
-rw-r--r-- | source/blender/blenkernel/intern/object_update.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/object_update.c b/source/blender/blenkernel/intern/object_update.c index c44a45e67eb..5a25880a7d1 100644 --- a/source/blender/blenkernel/intern/object_update.c +++ b/source/blender/blenkernel/intern/object_update.c @@ -145,7 +145,9 @@ void BKE_object_eval_constraints(Depsgraph *depsgraph, 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 relcalculating it. */ + invert_m4_m4(ob->imat, ob->obmat); /* Set negative scale flag in object. */ if (is_negative_m4(ob->obmat)) ob->transflag |= OB_NEG_SCALE; else ob->transflag &= ~OB_NEG_SCALE; |