From e441c57d22c49046a929e64d15fce169799696d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Luc=20Peuri=C3=A8re?= Date: Sat, 21 May 2005 21:52:58 +0000 Subject: [PATCH] fix for bug #2588 objects with circular dependancies where not handled correctly when sorting bases. the fix is actually a workaround only and may evolve later also add changes to xcode project for recent commits --- source/blender/blenkernel/intern/depsgraph.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/blender/blenkernel/intern/depsgraph.c b/source/blender/blenkernel/intern/depsgraph.c index 7ae3f39e197..668b18c0913 100644 --- a/source/blender/blenkernel/intern/depsgraph.c +++ b/source/blender/blenkernel/intern/depsgraph.c @@ -999,6 +999,14 @@ void topo_sort_baselist(struct Scene *sce){ } } + // temporal correction for circular dependancies + base = sce->base.first; + while (base) { + BLI_remlink(&sce->base,base); + BLI_addhead(&tempbase,base); + base = sce->base.first; + } + sce->base = tempbase; queue_delete(nqueue); }