[Bf-blender-cvs] [6933bb4e9a] render-layers: Fixup for bpy.context.scene_collection

Dalai Felinto noreply at git.blender.org
Fri Jan 6 14:31:55 CET 2017


Commit: 6933bb4e9a34d9200eb9a13a2bef6e4309ee8e13
Author: Dalai Felinto
Date:   Fri Jan 6 14:31:48 2017 +0100
Branches: render-layers
https://developer.blender.org/rB6933bb4e9a34d9200eb9a13a2bef6e4309ee8e13

Fixup for bpy.context.scene_collection

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

M	source/blender/makesrna/intern/rna_context.c

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

diff --git a/source/blender/makesrna/intern/rna_context.c b/source/blender/makesrna/intern/rna_context.c
index 0d57ad76b8..9270cda0d2 100644
--- a/source/blender/makesrna/intern/rna_context.c
+++ b/source/blender/makesrna/intern/rna_context.c
@@ -116,6 +116,7 @@ static PointerRNA rna_Context_scene_layer_get(PointerRNA *ptr)
 static PointerRNA rna_Context_scene_collection_get(PointerRNA *ptr)
 {
 	bContext *C = (bContext *)ptr->data;
+	ptr->id.data = CTX_data_scene(C);
 	return rna_pointer_inherit_refine(ptr, &RNA_SceneCollection, CTX_data_scene_collection(C));
 }




More information about the Bf-blender-cvs mailing list