Blender Git Commit Log

Git Commits -> Revision f00f959

Revision f00f959 by Sergey Sharybin (master)
January 13, 2014, 09:57 (GMT)
Remove direct displist creation from curve deform

This solves threading conflict which happens when having
multiple objects using Curve Deform modifier with the same
curve datablock. This conflict was caused by the fact that
curve_deform_verts() used to temporary override curve's
flags to make it path is there.

Actually, it was setting CU_FOLLOW flag temporary which
was only used where_on_path() (only in terms that this
temporary assignment only affected this function) but it
is now commented out for a while, so no reason to set
this flag temporary, If it's ever to be done, we'll need
to pass flags as an additional function argument.

For the path creation i've extended DegNode structure
which now holds extra bits which indicates what additional
data depending on the graph topology is to be evaluated.

Currently this is only used to indicate that curve needs
path to be evaluated regardless to cu->flag state. This
is so Curve Deform modifier is always happy.

In the future this flag might also be used to indicate
whether bmesh verts are to update (see recent commit to
3-vertex parent crash fix) or to indicate that the object
is the motherball etc.

Commit Details:

Full Hash: f00f959d523dc9ae0fe60cf28367dbbe1464e232
Parent Commit: f86fbc4
Lines Changed: +53, -24

9 Modified Paths:

/source/blender/blenkernel/BKE_depsgraph.h (+10, -0) (Diff)
/source/blender/blenkernel/BKE_lattice.h (+2, -2) (Diff)
/source/blender/blenkernel/depsgraph_private.h (+7, -1) (Diff)
/source/blender/blenkernel/intern/anim.c (+6, -1) (Diff)
/source/blender/blenkernel/intern/armature.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/depsgraph.c (+7, -0) (Diff)
/source/blender/blenkernel/intern/displist.c (+7, -2) (Diff)
/source/blender/blenkernel/intern/lattice.c (+11, -16) (Diff)
/source/blender/modifiers/intern/MOD_curve.c (+2, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021