diff options
author | Bastien Montagne <bastien@blender.org> | 2020-12-08 19:57:16 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2021-01-11 19:59:21 +0300 |
commit | 2a8b987e9e4dacd788ce955966d28c04ed91caf3 (patch) | |
tree | 3d55baaab4acbb89753228eb92836a108a7c13d2 /source/blender/blenkernel/intern/fluid.c | |
parent | e44e0e4e78bed21846c4c2455f81d678f61d212e (diff) |
Fix T83422: Dimensions incorrect after undoing if it has modified geometry.
Root of the issue is that `BKE_object_eval_boundbox` (that ports back
evaluated bbox to orig object during active depsgraph evaluation) is
only called when object's geometry actually is evaluated.
However, with new undo, often Object itself can be changed by undo,
without requiring its geometry to be re-evaluated, which was leading to
the evaluated bbox not being copied back into orig object anymore.
Fixing that by moving bbox copying-to-orig code into
`BKE_object_sync_to_original` instead, which is always executed when
object is evaluated (as hinted by the comment above
`BKE_object_eval_boundbox` actually).
Also allows to cleanup code for armature eval, apparently.
Maniphest Tasks: T83422
Differential Revision: https://developer.blender.org/D9789
Diffstat (limited to 'source/blender/blenkernel/intern/fluid.c')
0 files changed, 0 insertions, 0 deletions