Blender Git Loki
Git Commits -> Revision 7ef3f98
Revision 7ef3f98 by Sergey Sharybin (master) August 19, 2013, 09:36 (GMT) |
Made curves almost thread-safe Now modifier stack wouldn't modify original curve's nurbs and will operate on a copy of nurbs. This makes it possible to process curve object update with shared curve datablocks from multiple threads. There's no big overhead for creating a copy of nurbs comparing to old behavior which was allocating original vertex array and apply coordinates on curve after all modifier are applied. The only remained issue with curves is curve's bounding box and texture space. It's not thread-safe, but it wouldn't lead to crashes -- it just could lead to either memory leak or wrong texture coordinates due to difference in modifiers stacks of objects which shares the same curve. -- svn merge -r57959:57961 ^/branches/soc-2013-depsgraph_mt |
Commit Details:
Full Hash: 7ef3f98de1339f9b25ce5670b9b5d5e5ef798327
SVN Revision: 59267
Parent Commit: 345fff8
Lines Changed: +44, -63
7 Modified Paths:
/source/blender/blenkernel/BKE_anim.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_curve.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/anim.c (+1, -3) (Diff)
/source/blender/blenkernel/intern/cdderivedmesh.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/curve.c (+3, -7) (Diff)
/source/blender/blenkernel/intern/displist.c (+35, -48) (Diff)
/source/blender/blenkernel/intern/mesh.c (+2, -2) (Diff)
/source/blender/blenkernel/BKE_curve.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/anim.c (+1, -3) (Diff)
/source/blender/blenkernel/intern/cdderivedmesh.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/curve.c (+3, -7) (Diff)
/source/blender/blenkernel/intern/displist.c (+35, -48) (Diff)
/source/blender/blenkernel/intern/mesh.c (+2, -2) (Diff)