Blender Git Loki

Git Commits -> Revision 7c7a3f7

Revision 7c7a3f7 by Sergey Sharybin (master)
July 2, 2013, 19:23 (GMT)
Fix for dupli-groups update going wrong

Dupli-groups used to have special case for updating
which is BKE_group_handle_recalc_and_update. This
function calls BKE_object_handle_update for every
object in the group.

This isn't thread-safe, because object could be
updating in separate thread already. And what's
worse dependencies are not known for objects inside
the group, which makes it impossible to schedule
objects from the group in a safe way.

It's even impossible to schedule groups as different
tasks, because groups could share the same objects.

For now used simple but robust solution which is
updating dupli-groups in main thread, handling
groups one-by-one and updating objects from the
group one-by-one as well.

Will work on a proper solution for this later.

Commit Details:

Full Hash: 7c7a3f7879c426451557a1076d2c91711da0c24e
SVN Revision: 57946
Parent Commit: e4f7260
Lines Changed: +45, -22

1 Modified Path:

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