Fix T57616: Deleting particle system instance object leads to crash
authorSergey Sharybin <sergey.vfx@gmail.com>
Fri, 23 Nov 2018 11:00:34 +0000 (12:00 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Fri, 23 Nov 2018 11:03:26 +0000 (12:03 +0100)
commitfc830ce78f67ce3248b80f0e2a53cbc978f7040c
tree8cfcde55b7f22ecce2cda1d01554e25bdf07c9a1
parent4b06d0bf51c38c4358c07823358589ca1cdc6f47
Fix T57616: Deleting particle system instance object leads to crash

Explicitly tag copy-on-write form library remap. Previously, this
tag was used implicitly via geometry/transform tagging, which worked
ok for objects. For non-objects we do need to ensure all copies has
correct pointer and the only way to do so is to pass tag explicitly.

There is probably more places in the library remap where this is
needed, but not being familiar with the code makes it difficult to
spot where possible tags are missing.
source/blender/blenkernel/intern/library_remap.c