Blender Git Loki

Git Commits -> Revision cbdedc1

Revision cbdedc1 by Sergey Sharybin (master)
January 23, 2014, 10:30 (GMT)
Fix T38284: Crash with several shrinkwrap constraint using same target

Issue is caused by the race condition between getting custom data layers
from target's derived mesh (for vertices and faces) and releasing this
derived mesh from other threads.

When one releases the derived mesh it'll free temporary data from it,
and it'll also update data layers mapping.

General rule for threading is that no one is ever allowed to modify
data he doesn't own. This means that no temp layers are to be allocated
in derived mesh and making it so `CustomData_free_temporary()` doesn't
update mapping if nothing was freed will solve the race condition.

It is still possible to do other improvements, namely detect which
additional data/layers are to be present in derived mesh and create
it as a part of `object_handle_update()`, but this is to be solved
separately.

Commit Details:

Full Hash: cbdedc169dd948d308dcdb1fc2e74b1fdd25880c
Parent Commit: 6c1c6f2
Lines Changed: +10, -3

1 Modified Path:

/source/blender/blenkernel/intern/customdata.c (+10, -3) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021