Merge pull request #65016 from timothyqiu/skin-data

Fix crash when executing `TubeTrailMesh.get_faces()` with GLES3
This commit is contained in:
Rémi Verschelde 2022-09-07 22:17:55 +02:00 committed by GitHub
commit 337e4d185a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;