Open
Description
Tested versions
- Reproducible in 4.5-beta1
- From looking at the code, I believe this issue goes back a long time
System information
Windows 11
Issue description
The SoftBody3D
code operates on the mesh surface arrays directly, but does not check the surface primitive type. It assumes that surface 0 is always a PRIMITIVE_TRIANGLES
surface, and interprets the index array as such, but without checking the type. This can cause the code to crash if given a non-triangle mesh.
Steps to reproduce
- Create a SoftBody3D, and try assigning a PRIMITIVE_LINES mesh to it's
mesh
property