diff --git a/src/components/ui/MainPanel/MetaData.tsx b/src/components/ui/MainPanel/MetaData.tsx index 59e8ae2f..fb9e7484 100644 --- a/src/components/ui/MainPanel/MetaData.tsx +++ b/src/components/ui/MainPanel/MetaData.tsx @@ -355,7 +355,8 @@ export const MetaData = ({ meta, metadata }: Props) => { useGlobalStore.setState({bivariate:isBivariate}) useColormapStore.setState({bivariateSelection: 0}) useAnalysisStore.setState({ analysisMode: false, analysisDim: null }); - setTextureArrayDepths(sizeData.texDepths); + const {texDepths} = sizeData; + setTextureArrayDepths(texDepths.length === 3 ? texDepths : [1, ...texDepths]); setMaxSize(cacheSize); setVariable(meta.name || ''); clearProjectionData()