PackedByteArray, Array slice end exclusive, rename subarray to slice

This commit is contained in:
Nathan Franke 2021-11-26 19:18:26 -06:00
parent b43281c8ab
commit dd30253cdc
No known key found for this signature in database
GPG key ID: 92164DCCF3B1F723
20 changed files with 166 additions and 157 deletions

View file

@ -1376,7 +1376,7 @@ Array RenderingServer::mesh_surface_get_blend_shape_arrays(RID p_mesh, int p_sur
Array blend_shape_array;
blend_shape_array.resize(mesh_get_blend_shape_count(p_mesh));
for (uint32_t i = 0; i < blend_shape_count; i++) {
Vector<uint8_t> bs_data = blend_shape_data.subarray(i * divisor, (i + 1) * divisor - 1);
Vector<uint8_t> bs_data = blend_shape_data.slice(i * divisor, (i + 1) * divisor);
Vector<uint8_t> unused;
blend_shape_array.set(i, _get_array_from_surface(bs_format, bs_data, unused, unused, sd.vertex_count, unused, 0));
}