Operating system: Linux-4.13.10-041310-generic-x86_64-with-debian-stretch-sid 64 Bits
Graphics card: GeForce GTX 1050/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 390.67
Broken: version: 2.80 (sub 69), branch: blender2.7, commit date: 2019-05-17 21:54, hash: rB3b8ae2c08f5c
Worked: before depsgraph changes
Short description of error
Applying an array mod using bpy.data.meshes.new_from_object() will clear vertex groups. The groups still exist but no vertices are assigned.
This happens for arrays with and without caps.
In previous versions, you could set up vertex groups on the main object and the caps, and after applying the mod, the vertex groups would still work as expected on the flattened object.
Applying the modifer from the modifier panel works as expected.
I think this is one for @Sergey Sharybin (sergey) again.
Exact steps for others to reproduce the error
- load the blend file above
- apply mod from the modifier panel and check the vertex group on the result
- reload and apply the mod via the script, the vertex group is now empty