[Bf-blender-cvs] [8692c3a83f5] blender2.8: Depsgraph: Fix wrong layer used

Sergey Sharybin noreply at git.blender.org
Mon Jul 10 16:00:14 CEST 2017


Commit: 8692c3a83f586a3451803c820483b1a285657fcd
Author: Sergey Sharybin
Date:   Mon Jul 10 15:45:06 2017 +0200
Branches: blender2.8
https://developer.blender.org/rB8692c3a83f586a3451803c820483b1a285657fcd

Depsgraph: Fix wrong layer used

Should be context, not render active one here.

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

M	source/blender/depsgraph/intern/depsgraph_query.cc

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

diff --git a/source/blender/depsgraph/intern/depsgraph_query.cc b/source/blender/depsgraph/intern/depsgraph_query.cc
index 3dfa6bf5e9d..0c876324210 100644
--- a/source/blender/depsgraph/intern/depsgraph_query.cc
+++ b/source/blender/depsgraph/intern/depsgraph_query.cc
@@ -92,7 +92,7 @@ SceneLayer *DEG_get_scene_layer(Depsgraph *graph)
 {
 	Scene *scene = DEG_get_scene(graph);
 	if (scene) {
-		return BKE_scene_layer_render_active(scene);
+		return BKE_scene_layer_context_active(scene);
 	}
 	return NULL;
 }




More information about the Bf-blender-cvs mailing list