Fix T57070: Take Two of 2.8 Crash in sculpting mode with tilling and Dyntopo.
Accessing ob->bb directly is not a good idea anyway. Still, would like to know why/where this bbox is freed, since it is allocated at least once by depsgraph eval, as part of `BKE_object_handle_data_update()` function...
This commit is contained in:
parent
1944bca49a
commit
47bf0a33ef
Notes:
blender-bot
2023-02-14 05:14:10 +01:00
Referenced by issue #57070, 2.8 Crash in sculpting mode with tilling and Dyntopo
|
@ -3954,8 +3954,9 @@ static void do_tiled(Sculpt *sd, Object *ob, Brush *brush, UnifiedPaintSettings
|
|||
SculptSession *ss = ob->sculpt;
|
||||
StrokeCache *cache = ss->cache;
|
||||
const float radius = cache->radius;
|
||||
const float *bbMin = ob->bb->vec[0];
|
||||
const float *bbMax = ob->bb->vec[6];
|
||||
BoundBox *bb = BKE_object_boundbox_get(ob);
|
||||
const float *bbMin = bb->vec[0];
|
||||
const float *bbMax = bb->vec[6];
|
||||
const float *step = sd->paint.tile_offset;
|
||||
int dim;
|
||||
|
||||
|
|
Loading…
Reference in New Issue