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:
authorBastien Montagne <montagne29@wanadoo.fr>2018-10-24 18:18:02 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2018-10-24 18:21:56 +0300
commite66084268ccc08bfde4b384211f5a248a805036d (patch)
treebe860596cf6b27742c71c74d4598dfb700382c4a
parent0ce8ee526fdee1c247b760cafaa973f5b814036e (diff)
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.).
-rw-r--r--source/blender/blenkernel/intern/object_update.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/object_update.c b/source/blender/blenkernel/intern/object_update.c
index 1b34c4cba9d..70cdf3505ed 100644
--- a/source/blender/blenkernel/intern/object_update.c
+++ b/source/blender/blenkernel/intern/object_update.c
@@ -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;
+ }
}
}