1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-06 19:41:11 +00:00

Merge pull request #113202 from aaronfranke/importer-mesh-convert

Allow converting from Mesh to ImporterMesh
This commit is contained in:
Thaddeus Crews
2025-12-02 11:52:03 -06:00
4 changed files with 53 additions and 72 deletions

View File

@@ -42,6 +42,13 @@
Removes all surfaces and blend shapes from this [ImporterMesh].
</description>
</method>
<method name="from_mesh" qualifiers="static">
<return type="ImporterMesh" />
<param index="0" name="mesh" type="Mesh" />
<description>
Converts the given [Mesh] into an [ImporterMesh] by copying all its surfaces, blend shapes, materials, and metadata into a new [ImporterMesh] object.
</description>
</method>
<method name="generate_lods">
<return type="void" />
<param index="0" name="normal_merge_angle" type="float" />