Fix T54096: Subdivision Surface + Boolean Modifiers + Transform = crash
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 19 Feb 2018 15:16:56 +0000 (16:16 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 19 Feb 2018 15:16:56 +0000 (16:16 +0100)
commit529cc364f4a6e02d149da89c934c486051801e1a
treef55f0c3e11535b2f2774a1efc255fd795cb21bf6
parentdc65a6f63b54fce657750360e569ea8b4b067bf7
Fix T54096: Subdivision Surface + Boolean Modifiers + Transform = crash

Don't use dm->get*Array for DM you don't own. This call can allocate temporary
CD layer, which is not thread safe at all.

Also removed hard-coded logic around CDDM check. new functions will do same
logic, but are mode DM-type-=independent.
source/blender/blenkernel/intern/modifiers_bmesh.c