Blender Git Loki

Git Commits -> Revision 752c6d6

Revision 752c6d6 by Germano Cavalcante (master)
November 24, 2021, 17:52 (GMT)
Fix T90808: wrong BoundBox after undo curve selection

There are two functions that recalculate the boundbox of an object:
- One that considers the evaluated geometry
- Another that only considers the object's `data`.

Most of the time, the bound box is calculated on the final object
(with modifiers), so it doesn't seem right to just rely on `ob->data`
to recalculate the `ob->runtime.bb`.

Be sure to calculate the BoundBox based on the final geometry and
only use `ob->data` as a fallback

Differential Revision: https://developer.blender.org/D12282

Commit Details:

Full Hash: 752c6d668bcb9a6b357734f7e124a6b605ac9d9b
Parent Commit: 7a7ae4d
Lines Changed: +41, -31

4 Modified Paths:

/source/blender/blenkernel/BKE_object.h (+1, -0) (Diff)
/source/blender/blenkernel/intern/displist.cc (+3, -30) (Diff)
/source/blender/blenkernel/intern/object.cc (+31, -0) (Diff)
/source/blender/blenkernel/intern/object_update.c (+6, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021