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:
authorCampbell Barton <ideasman42@gmail.com>2019-02-17 04:24:08 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-02-17 04:52:53 +0300
commitae2b677dcb5a70f5f58e1da56b4fcf15b12ef851 (patch)
tree93dd1b8a40c6eed9ca8c6845f443f503c142c968 /source/blender/blenkernel/intern/lattice.c
parent0d86259fc8a34c7ae3543008adc16e35d185fdbd (diff)
Cleanup: move object bounding-box into runtime struct
Diffstat (limited to 'source/blender/blenkernel/intern/lattice.c')
-rw-r--r--source/blender/blenkernel/intern/lattice.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/lattice.c b/source/blender/blenkernel/intern/lattice.c
index 4a974267950..f11c1cb134f 100644
--- a/source/blender/blenkernel/intern/lattice.c
+++ b/source/blender/blenkernel/intern/lattice.c
@@ -1089,11 +1089,11 @@ static void boundbox_lattice(Object *ob)
Lattice *lt;
float min[3], max[3];
- if (ob->bb == NULL) {
- ob->bb = MEM_callocN(sizeof(BoundBox), "Lattice boundbox");
+ if (ob->runtime.bb == NULL) {
+ ob->runtime.bb = MEM_callocN(sizeof(BoundBox), "Lattice boundbox");
}
- bb = ob->bb;
+ bb = ob->runtime.bb;
lt = ob->data;
INIT_MINMAX(min, max);
@@ -1107,7 +1107,7 @@ BoundBox *BKE_lattice_boundbox_get(Object *ob)
{
boundbox_lattice(ob);
- return ob->bb;
+ return ob->runtime.bb;
}
void BKE_lattice_minmax_dl(Object *ob, Lattice *lt, float min[3], float max[3])