Blender Git Loki

Git Commits -> Revision 2fe0981

Revision 2fe0981 by Sergey Sharybin (master)
July 3, 2013, 12:32 (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.

Commit Details:

Full Hash: 2fe0981fadda828090a4fc764957b9fc76abdfdb
SVN Revision: 57960
Parent Commit: fc4c736
Lines Changed: +40, -66

5 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/curve.c (+2, -6) (Diff)
/source/blender/blenkernel/intern/displist.c (+35, -55) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021