diff options
author | kobewi <kobewi4e@gmail.com> | 2022-08-05 20:35:08 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2022-08-23 23:21:32 +0200 |
commit | 1abdffe7a029daf634f57132cb5ab5d82a7ccfc9 (patch) | |
tree | 1b0d34d6c4bfb94b46b3640e17ce80b5dc291b11 /scene/3d/soft_dynamic_body_3d.cpp | |
parent | d5606503b47a98a5d1d925b2b655760dab850e6e (diff) |
Replace Array return types with TypedArray 2
Diffstat (limited to 'scene/3d/soft_dynamic_body_3d.cpp')
-rw-r--r-- | scene/3d/soft_dynamic_body_3d.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/3d/soft_dynamic_body_3d.cpp b/scene/3d/soft_dynamic_body_3d.cpp index c9eafc77e0..2650d62fa4 100644 --- a/scene/3d/soft_dynamic_body_3d.cpp +++ b/scene/3d/soft_dynamic_body_3d.cpp @@ -591,10 +591,10 @@ Vector<SoftDynamicBody3D::PinnedPoint> SoftDynamicBody3D::get_pinned_points_indi return pinned_points; } -Array SoftDynamicBody3D::get_collision_exceptions() { +TypedArray<PhysicsBody3D> SoftDynamicBody3D::get_collision_exceptions() { List<RID> exceptions; PhysicsServer3D::get_singleton()->soft_body_get_collision_exceptions(physics_rid, &exceptions); - Array ret; + TypedArray<PhysicsBody3D> ret; for (const RID &body : exceptions) { ObjectID instance_id = PhysicsServer3D::get_singleton()->body_get_object_instance_id(body); Object *obj = ObjectDB::get_instance(instance_id); |