Remove direct displist creation from BKE_vfont_to_curve_ex()
[blender.git] / source / blender / blenkernel / intern / depsgraph.c
index 630c1711502908f76d6f6974323dc098d625bf69..d52752c364c2ceac583c520d69b41723dbef6a63 100644 (file)
@@ -2145,10 +2145,9 @@ void DAG_on_visible_update(Main *bmain, const short do_time)
                 * remade, tag them so they get remade in the scene update loop,
                 * note armature poses or object matrices are preserved and do not
                 * require updates, so we skip those */
-               dag_scene_flush_layers(scene, lay);
-               if (scene->set) {
-                       dag_scene_flush_layers(scene->set, lay);
-               }
+               for (sce_iter = scene; sce_iter; sce_iter = sce_iter->set)
+                       dag_scene_flush_layers(sce_iter, lay);
+
                BKE_main_id_tag_idcode(bmain, ID_GR, false);
 
                for (SETLOOPER(scene, sce_iter, base)) {