Skip to content

SoftBody3D crashes when given a non-triangle mesh #108036

@simpkins

Description

@simpkins

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

Minimal reproduction project (MRP)

soft_body_lines_crash.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions