Blender Git Commit Log

Git Commits -> Revision e4f7260

Revision e4f7260 by Sergey Sharybin (master)
July 2, 2013, 19:23 (GMT)
Move bevel list and path from Curve to Object datablock

I know this is not so much nice to have this guys hanging
around in a general Object datablock and ideally they better
be wrapped around into a structure like DerivedMesh or
something like this. But this is pure runtime only stuff and
we could re-wrap them around later.

Main purpose of this is making curves more thread safe,
so no separate threads will ever start freeing the same path
or the same bevel list.

It also makes sense because path and bevel shall include
deformation coming from modifiers which are applying on
pre-tesselation point and different objects could have
different set of modifiers. This used to be really confusing
in the past and now dtaa which depends on object is stored
in an object, making things clear for understanding even.

This doesn't make curve code fully thread-safe due to
pre-tesselation modifiers still modifies actual nurbs and
lock is still needed in makeDispListsCurveTypes, but this
change makes usage of paths safe for threading.

Once modifiers will stop modifying actual nurbs, curves
will be fully safe for threading.

Commit Details:

Full Hash: e4f7260bace919fe0be2218181a85020c29cdcbd
SVN Revision: 57945
Parent Commit: 79c678b
Lines Changed: +74, -78

16 Modified Paths:

/source/blender/blenkernel/intern/anim.c (+7, -7) (Diff)
/source/blender/blenkernel/intern/armature.c (+3, -6) (Diff)
/source/blender/blenkernel/intern/constraint.c (+6, -13) (Diff)
/source/blender/blenkernel/intern/curve.c (+16, -19) (Diff)
/source/blender/blenkernel/intern/depsgraph.c (+1, -0) (Diff)
/source/blender/blenkernel/intern/displist.c (+4, -4) (Diff)
/source/blender/blenkernel/intern/effect.c (+2, -2) (Diff)
/source/blender/blenkernel/intern/font.c (+3, -3) (Diff)
/source/blender/blenkernel/intern/lattice.c (+6, -7) (Diff)
/source/blender/blenkernel/intern/object.c (+13, -4) (Diff)
/source/blender/blenkernel/intern/scene.c (+1, -3) (Diff)
/source/blender/blenloader/intern/readfile.c (+4, -2) (Diff)
/source/blender/editors/space_view3d/drawobject.c (+2, -2) (Diff)
/source/blender/makesdna/DNA_curve_types.h (+0, -3) (Diff)
/source/blender/makesdna/DNA_object_types.h (+3, -0) (Diff)
/source/blender/modifiers/intern/MOD_array.c (+3, -3) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021