Fix T56172 Accessing COW data from RNA - Dimension
Also fixes T55769 Dimension Not properly work and T56064 Blender crashes on selecting text-object We decided to go to the easy way in the end, simply enforcing computing BBox of all objects when using 'active' depsgraph, and copying back to orig object (same as transform matrix, etc.).
This commit is contained in:
parent
0ce8ee526f
commit
e66084268c
Notes:
blender-bot
2023-02-14 05:38:30 +01:00
Referenced by issue #57389, Culling not working correctly when using array modifier Referenced by issue #56172, COW and RNA Referenced by issue #55769, Dimension Not properly work
|
@ -149,6 +149,14 @@ void BKE_object_eval_done(Depsgraph *depsgraph, Object *ob)
|
|||
copy_m4_m4(ob_orig->constinv, ob->constinv);
|
||||
ob_orig->transflag = ob->transflag;
|
||||
ob_orig->flag = ob->flag;
|
||||
|
||||
BoundBox *bb = BKE_object_boundbox_get(ob);
|
||||
if (bb != NULL) {
|
||||
if (ob_orig->bb == NULL) {
|
||||
ob_orig->bb = MEM_mallocN(sizeof(*ob_orig->bb), __func__);
|
||||
}
|
||||
*ob_orig->bb = *bb;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue