Make Skeleton3D::add_bone return the new bone index right away, instead of requiring an additional call to get_bone_count.

This commit is contained in:
Zi Ye
2024-02-24 17:44:26 -06:00
parent 2e7fc81315
commit 995bc8d049
5 changed files with 67 additions and 6 deletions

View File

@ -215,3 +215,12 @@ Renamed to EditorSceneFormatImporterFBX2GLTF.
The compat breakage was deemed necessary as this is a class most users wouldn't
use directly, and the name needs to be disambiguated with the new
EditorSceneFormatImporterUFBX.
GH-88791
--------
Validate extension JSON: JSON file: Field was added in a way that breaks compatibility 'classes/Skeleton3D/methods/add_bone': return_value
Added a return value for add_bone.
Should not affect existing regular use - the return value would just be unused.
Compatibility method registered.