godotengine / godot-cpp

C++ bindings for the Godot script API
MIT License
1.69k stars 528 forks source link

ImporterMesh generate_lods doesn't produce lods #1464

Closed Redcroft closed 3 months ago

Redcroft commented 4 months ago

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

AThousandShips commented 4 months ago

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

AThousandShips commented 3 months ago

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