diff options
author | Jean-Luc Peurière <jlp@nerim.net> | 2005-05-22 01:52:58 +0400 |
---|---|---|
committer | Jean-Luc Peurière <jlp@nerim.net> | 2005-05-22 01:52:58 +0400 |
commit | e441c57d22c49046a929e64d15fce169799696d1 (patch) | |
tree | 8a3042a7939e5c22889963b408bb990f0f8f2390 | |
parent | 33832f52eaeb8d3cdadd6188437df8b168827fe4 (diff) |
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
-rw-r--r-- | source/blender/blenkernel/intern/depsgraph.c | 8 |
1 files changed, 8 insertions, 0 deletions
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); } |