diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-07-06 19:45:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-06 19:45:14 +0200 |
commit | 8234f5c5a4a51bd67e687556bd54962b2e3f1489 (patch) | |
tree | a05fa9e7249febb9093885ddc21da1cd967be314 /scene/3d | |
parent | 0b6b49a897b35bec53765e1288c32d57afa1a293 (diff) | |
parent | 4e4697b1c481094949165fa9edbe6aeebcfcf3b4 (diff) |
Merge pull request #30206 from ibrahn/poolvector-access-close
Added release function to PoolVector::Access.
Diffstat (limited to 'scene/3d')
-rw-r--r-- | scene/3d/soft_body.cpp | 2 | ||||
-rw-r--r-- | scene/3d/sprite_3d.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/scene/3d/soft_body.cpp b/scene/3d/soft_body.cpp index b9f6865298..386e127f8b 100644 --- a/scene/3d/soft_body.cpp +++ b/scene/3d/soft_body.cpp @@ -73,7 +73,7 @@ void SoftBodyVisualServerHandler::open() { } void SoftBodyVisualServerHandler::close() { - write_buffer = PoolVector<uint8_t>::Write(); + write_buffer.release(); } void SoftBodyVisualServerHandler::commit_changes() { diff --git a/scene/3d/sprite_3d.cpp b/scene/3d/sprite_3d.cpp index 9f73484b6a..d0f8799a64 100644 --- a/scene/3d/sprite_3d.cpp +++ b/scene/3d/sprite_3d.cpp @@ -254,7 +254,7 @@ Ref<TriangleMesh> SpriteBase3D::generate_triangle_mesh() const { facesw[j] = vtx; } - facesw = PoolVector<Vector3>::Write(); + facesw.release(); triangle_mesh = Ref<TriangleMesh>(memnew(TriangleMesh)); triangle_mesh->create(faces); |