diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-09-07 22:17:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-07 22:17:55 +0200 |
commit | 337e4d185af0ff0ea2dba60abecd4af50b9d10f8 (patch) | |
tree | 499abce7a71c0af342bdd4bceafce5dca57515d4 /drivers/gles3/storage | |
parent | d1be14a9cbb10721d998a936169a55fa464dc687 (diff) | |
parent | 7c77cd0f7bdf8a57f3220cbd2122efb3ae4b3f6b (diff) |
Merge pull request #65016 from timothyqiu/skin-data
Fix crash when executing `TubeTrailMesh.get_faces()` with GLES3
Diffstat (limited to 'drivers/gles3/storage')
-rw-r--r-- | drivers/gles3/storage/mesh_storage.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gles3/storage/mesh_storage.cpp b/drivers/gles3/storage/mesh_storage.cpp index 5fcb7706f4..e54ecd51c4 100644 --- a/drivers/gles3/storage/mesh_storage.cpp +++ b/drivers/gles3/storage/mesh_storage.cpp @@ -352,6 +352,10 @@ RS::SurfaceData MeshStorage::mesh_get_surface(RID p_mesh, int p_surface) const { sd.attribute_data = Utilities::buffer_get_data(GL_ARRAY_BUFFER, s.attribute_buffer, s.attribute_buffer_size); } + if (s.skin_buffer != 0) { + sd.skin_data = Utilities::buffer_get_data(GL_ARRAY_BUFFER, s.skin_buffer, s.skin_buffer_size); + } + sd.vertex_count = s.vertex_count; sd.index_count = s.index_count; sd.primitive = s.primitive; |