EditableMesh Crashes When All Vertices Of A Triangle Are The Same

Roblox Studio crashes when all vertices of a triangle are the same.

Reproduction Steps

  • Run the code below in Roblox Studio.
    local eMesh = Instance.new("EditableMesh")
    local vertId = eMesh:AddVertex(Vector3.new(0,0,0))
    eMesh:AddTriangle(vertId, vertId, vertId)
    
    local mesh = Instance.new("MeshPart")
    eMesh.Parent = mesh
    mesh.Parent = workspace
    
  • Roblox Studio should hang for a few seconds and then crash.
2 Likes

Thanks a lot for reporting the bug! The team will investigate it.

2 Likes