[Bf-blender-cvs] [e66084268cc] blender2.8: Fix T56172 Accessing COW data from RNA - Dimension

Bastien Montagne noreply at git.blender.org
Wed Oct 24 17:22:02 CEST 2018


Commit: e66084268ccc08bfde4b384211f5a248a805036d
Author: Bastien Montagne
Date:   Wed Oct 24 17:18:02 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBe66084268ccc08bfde4b384211f5a248a805036d

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.).

===================================================================

M	source/blender/blenkernel/intern/object_update.c

===================================================================

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;
+		}
 	}
 }



More information about the Bf-blender-cvs mailing list