Fix #25272: shrinkwrap with dependency cycle could lead to eternal
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Fri, 17 Dec 2010 20:13:54 +0000 (20:13 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Fri, 17 Dec 2010 20:13:54 +0000 (20:13 +0000)
commit8b28c24d16386db7e68326d8607de5d20c9833b0
tree70176cdad245118b54e1aa4ebeee98cdc84f6cbf
parent4b0c455093202ff203b7ea751786c39afcdc5633
Fix #25272: shrinkwrap with dependency cycle could lead to eternal
loop and increasing memory usage.

Modifiers should never call mesh_get_derived_final or similar, only
use ob->derivedFinal if it exists, if the dependencies are set correct
and there are no cycles, it will be there.
source/blender/blenkernel/BKE_shrinkwrap.h
source/blender/blenkernel/intern/constraint.c
source/blender/blenkernel/intern/shrinkwrap.c
source/blender/modifiers/intern/MOD_shrinkwrap.c