Commit: 8de6ffedaa698e2c1e84957aa54fefd3d4dd1244 Author: Bastien Montagne Date: Tue May 25 19:10:34 2021 +0200 Branches: override-recursive-resync https://developer.blender.org/rB8de6ffedaa698e2c1e84957aa54fefd3d4dd1244
Fix particlesystem not duplicating their pointcache in NO_MAIN case. Sharing data between duplicated IDs should be restricted to depsgraph (CoW) cases, not all NO_MAIN ones... =================================================================== M source/blender/blenkernel/intern/object.c =================================================================== diff --git a/source/blender/blenkernel/intern/object.c b/source/blender/blenkernel/intern/object.c index 034af924ab1..e4cfe64df11 100644 --- a/source/blender/blenkernel/intern/object.c +++ b/source/blender/blenkernel/intern/object.c @@ -2369,7 +2369,7 @@ ParticleSystem *BKE_object_copy_particlesystem(ParticleSystem *psys, const int f BLI_listbase_clear(&psysn->pathcachebufs); BLI_listbase_clear(&psysn->childcachebufs); - if (flag & LIB_ID_CREATE_NO_MAIN) { + if (flag & LIB_ID_COPY_SET_COPIED_ON_WRITE) { /* XXX Disabled, fails when evaluating depsgraph after copying ID with no main for preview * creation. */ // BLI_assert((psys->flag & PSYS_SHARED_CACHES) == 0); _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org https://lists.blender.org/mailman/listinfo/bf-blender-cvs