Commit: 791d23c1eb13f07328fa569e0ccdfcd2f232f3dd
Author: Monique
Date:   Thu Sep 8 15:25:24 2022 +0200
Branches: temp-T73411-view-layer-lazy-cache
https://developer.blender.org/rB791d23c1eb13f07328fa569e0ccdfcd2f232f3dd

Merge branch 'temp-T73411-view-layer-lazy-cache' of git.blender.org:blender 
into temp-T73411-view-layer-lazy-cache

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



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

diff --cc source/blender/makesrna/intern/rna_layer.c
index 1b551554b3a,7e51867a819..22d5ead474d
--- a/source/blender/makesrna/intern/rna_layer.c
+++ b/source/blender/makesrna/intern/rna_layer.c
@@@ -50,8 -50,10 +50,10 @@@
  
  static PointerRNA rna_ViewLayer_active_layer_collection_get(PointerRNA *ptr)
  {
+   const Scene *scene = (const Scene *)ptr->owner_id;
    ViewLayer *view_layer = (ViewLayer *)ptr->data;
+   BKE_view_layer_ensure_sync(scene, view_layer);
 -  LayerCollection *lc = BKE_view_layer_active_collection_get(view_layer, 
__func__);
 +  LayerCollection *lc = BKE_view_layer_active_collection_get(view_layer);
    return rna_pointer_inherit_refine(ptr, &RNA_LayerCollection, lc);
  }

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to