godotengine / godot-cpp

C++ bindings for the Godot script API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ImporterMesh generate_lods doesn't produce lods

Redcroft opened this issue · comments

Godot version

4.2.2

godot-cpp version

4.2

System information

NixOS, Ryzen 3950X

Issue description

I have an ImporterMesh which brings in surfaces just fine, but after adding all the surfaces and trying to generate lods, none are generated

Steps to reproduce

  importer_mesh->generate_lods(UtilityFunctions::deg_to_rad(25), UtilityFunctions::deg_to_rad(60), Array());
  UtilityFunctions::print(importer_mesh->get_mesh()->_surface_get_lods(0));

no lods are generated, and the print debug is just { }.

Minimal reproduction project

lod.debug.zip

This isn't likely to be unique to godot-cpp, please make sure this only occurs with extension and not GDScript or C#, if it does occur with those please report over here

Closing due to lack of response, if you provide the requested information this can be reopened