mirror of
https://github.com/godotengine/godot
synced 2024-09-06 06:04:31 +00:00
Merge pull request #52956 from laws65/skeleton3d-bone-fix
This commit is contained in:
commit
011866edcd
|
@ -520,6 +520,7 @@ void Skeleton3D::set_bone_parent(int p_bone, int p_parent) {
|
|||
const int bone_size = bones.size();
|
||||
ERR_FAIL_INDEX(p_bone, bone_size);
|
||||
ERR_FAIL_COND(p_parent != -1 && (p_parent < 0));
|
||||
ERR_FAIL_COND(p_bone == p_parent);
|
||||
|
||||
bones.write[p_bone].parent = p_parent;
|
||||
process_order_dirty = true;
|
||||
|
|
Loading…
Reference in a new issue