From f2309ba57943eb7e5a06119b6d45d9ba3b664c8b Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Tue, 25 Feb 2014 15:44:39 +0600 Subject: Fix T38824: curve which is constrained on a hidden layer causes cycles crash Issue was caused by cycles setting scene frame which will update scene for all the layers (not just visible ones) which confuses depsgraph making objects which are needed as dependency are not really evaluated. Made it so setting frame via scene.frame_set() which check whether update need to be flushed to an invisible objects and do this if so. Not ideal solution but seems to be safest at this point. --- source/blender/blenkernel/intern/anim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/blenkernel/intern/anim.c') diff --git a/source/blender/blenkernel/intern/anim.c b/source/blender/blenkernel/intern/anim.c index 31e388e6b6b..167baec3d9f 100644 --- a/source/blender/blenkernel/intern/anim.c +++ b/source/blender/blenkernel/intern/anim.c @@ -315,7 +315,7 @@ static void motionpaths_calc_update_scene(Scene *scene) Base *base, *last = NULL; /* only stuff that moves or needs display still */ - DAG_scene_update_flags(G.main, scene, scene->lay, TRUE); + DAG_scene_update_flags(G.main, scene, scene->lay, true, false); /* find the last object with the tag * - all those afterwards are assumed to not be relevant for our calculations -- cgit v1.2.3