From ae2b677dcb5a70f5f58e1da56b4fcf15b12ef851 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 17 Feb 2019 12:24:08 +1100 Subject: Cleanup: move object bounding-box into runtime struct --- source/blender/blenkernel/intern/lattice.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/blender/blenkernel/intern/lattice.c') 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]) -- cgit v1.2.3