mirror of
https://github.com/godotengine/godot
synced 2024-09-06 05:53:44 +00:00
Fixed physics bone crash: #20397
This commit is contained in:
parent
c2a9cb343b
commit
2e722caead
|
@ -1722,8 +1722,16 @@ void PhysicalBoneSpatialGizmoPlugin::redraw(EditorSpatialGizmo *p_gizmo) {
|
|||
return;
|
||||
|
||||
Skeleton *sk(physical_bone->find_skeleton_parent());
|
||||
if (!sk)
|
||||
return;
|
||||
|
||||
PhysicalBone *pb(sk->get_physical_bone(physical_bone->get_bone_id()));
|
||||
if (!pb)
|
||||
return;
|
||||
|
||||
PhysicalBone *pbp(sk->get_physical_bone_parent(physical_bone->get_bone_id()));
|
||||
if (!pbp)
|
||||
return;
|
||||
|
||||
Vector<Vector3> points;
|
||||
|
||||
|
|
Loading…
Reference in a new issue