mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
PackedByteArray, Array slice end exclusive, rename subarray to slice
This commit is contained in:
parent
b43281c8ab
commit
dd30253cdc
20 changed files with 166 additions and 157 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue