diff options
Diffstat (limited to 'source/blender/blenkernel/intern/gpencil.c')
-rw-r--r-- | source/blender/blenkernel/intern/gpencil.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/blenkernel/intern/gpencil.c b/source/blender/blenkernel/intern/gpencil.c index d2ca18ef231..83c69ee657f 100644 --- a/source/blender/blenkernel/intern/gpencil.c +++ b/source/blender/blenkernel/intern/gpencil.c @@ -1111,11 +1111,11 @@ static void boundbox_gpencil(Object *ob) bGPdata *gpd; float min[3], max[3]; - if (ob->bb == NULL) { - ob->bb = MEM_callocN(sizeof(BoundBox), "GPencil boundbox"); + if (ob->runtime.bb == NULL) { + ob->runtime.bb = MEM_callocN(sizeof(BoundBox), "GPencil boundbox"); } - bb = ob->bb; + bb = ob->runtime.bb; gpd = ob->data; BKE_gpencil_data_minmax(NULL, gpd, min, max); @@ -1133,15 +1133,15 @@ BoundBox *BKE_gpencil_boundbox_get(Object *ob) return NULL; gpd = ob->data; - if ((ob->bb) && ((ob->bb->flag & BOUNDBOX_DIRTY) == 0) && + if ((ob->runtime.bb) && ((ob->runtime.bb->flag & BOUNDBOX_DIRTY) == 0) && ((gpd->flag & GP_DATA_CACHE_IS_DIRTY) == 0)) { - return ob->bb; + return ob->runtime.bb; } boundbox_gpencil(ob); - return ob->bb; + return ob->runtime.bb; } /* ************************************************** */ |