From 6e002ac12b1c3c44c2e2e5d63b43332ebf4a4f28 Mon Sep 17 00:00:00 2001 From: Carifio24 Date: Sat, 10 Aug 2024 10:51:04 -0400 Subject: [PATCH] We can't unpack in an index expression for Python < 3.11. --- glue_ar/common/voxels.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glue_ar/common/voxels.py b/glue_ar/common/voxels.py index 2bb7725..b71631b 100644 --- a/glue_ar/common/voxels.py +++ b/glue_ar/common/voxels.py @@ -93,7 +93,7 @@ def add_voxel_layers_gltf(builder: GLTFBuilder, color_components = hex_to_components(color) for indices in nonempty_indices: - value = data[*indices] + value = data[tuple(indices)] adjusted_opacity = min(max(layer_state.alpha * opacity_factor * (value - isomin) / isorange, 0), 1) indices_tpl = tuple(indices) if indices_tpl in occupied_voxels: