godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
91.06k stars 21.18k forks source link

Crash when Loading Some Meshes #67709

Open mrjustaguy opened 2 years ago

mrjustaguy commented 2 years ago

Godot version

4.0 Beta 3

System information

Windows 11, Vulkan, GTX 1050 Ti 516.94

Issue description

Some Meshes Crash the Engine when attempting to put them on a mesh instance. Also they are clearly broken in the inspector preview.

Steps to reproduce

Open MRP, Inspect OBJ, Try to assign it to a Mesh Instance

Minimal reproduction project

Crash.zip

Klowner commented 2 years ago

Everything seems to go to garbage if the model exceeds 65,535 vertices (this model has 65,536).

I'm guessing there's an unsigned short limitation somewhere along the way.