[Bf-blender-cvs] [b1020ca1691] master: Fix crash on redo applying transforms

Philipp Oeser noreply at git.blender.org
Tue Jul 9 15:02:16 CEST 2019


Commit: b1020ca16912ac5856930819f34849673f204257
Author: Philipp Oeser
Date:   Tue Jul 9 14:59:30 2019 +0200
Branches: master
https://developer.blender.org/rBb1020ca16912ac5856930819f34849673f204257

Fix crash on redo applying transforms

When accessing evaluated objects, make sure access to an
evaluated dependency graph is done. This solves possible
access to NULL data on redo.

See https://developer.blender.org/D5209

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

M	source/blender/editors/object/object_transform.c

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

diff --git a/source/blender/editors/object/object_transform.c b/source/blender/editors/object/object_transform.c
index 025128a04e3..f52407d10b0 100644
--- a/source/blender/editors/object/object_transform.c
+++ b/source/blender/editors/object/object_transform.c
@@ -547,7 +547,7 @@ static int apply_objects_internal(bContext *C,
 {
   Main *bmain = CTX_data_main(C);
   Scene *scene = CTX_data_scene(C);
-  Depsgraph *depsgraph = CTX_data_depsgraph(C);
+  Depsgraph *depsgraph = CTX_data_evaluated_depsgraph(C);
   float rsmat[3][3], obmat[3][3], iobmat[3][3], mat[4][4], scale;
   bool changed = true;



More information about the Bf-blender-cvs mailing list