File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
frontend/javascripts/oxalis/view/action-bar Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ type Props = {
45
45
46
46
// When creating the texture for the dataset animation, we aim for for texture with the largest side of roughly this size
47
47
const TARGET_TEXTURE_SIZE = 2000 ; // in pixels
48
- const MAX_MESHES_PER_ANIMATION = 30 ; // arbitrary limit to not overload the server when rendering many large STL files
48
+ const MAX_MESHES_PER_ANIMATION = 40 ; // arbitrary limit to not overload the server when rendering many large STL files
49
49
50
50
function selectMagForTextureCreation (
51
51
colorLayer : APIDataLayer ,
@@ -147,18 +147,18 @@ function CreateAnimationModal(props: Props) {
147
147
const [ _ , estimatedTextureSize ] = selectMagForTextureCreation ( colorLayer , selectedBoundingBox ) ;
148
148
149
149
const hasEnoughMags = estimatedTextureSize < 1.5 * TARGET_TEXTURE_SIZE ;
150
- if ( hasEnoughMags )
150
+ if ( ! hasEnoughMags )
151
151
errorMessages . push (
152
152
"The selected bounding box is too large to create an animation. Either shrink the bounding box or consider downsampling the dataset to coarser magnifications." ,
153
153
) ;
154
154
155
155
const isDtypeSupported = colorLayer . elementClass !== "uint24" ;
156
- if ( isDtypeSupported )
156
+ if ( ! isDtypeSupported )
157
157
errorMessages . push ( "Sorry, animations are not supported for uInt24 datasets." ) ;
158
158
159
159
const isDataset3D =
160
160
! is2dDataset ( state . dataset ) && ( colorLayer . additionalAxes ?. length || 0 ) === 0 ;
161
- if ( isDataset3D ) errorMessages . push ( "Sorry, animations are only supported for 3D datasets." ) ;
161
+ if ( ! isDataset3D ) errorMessages . push ( "Sorry, animations are only supported for 3D datasets." ) ;
162
162
163
163
const isTooManyMeshes = meshes . length > MAX_MESHES_PER_ANIMATION ;
164
164
if ( isTooManyMeshes )
You can’t perform that action at this time.
0 commit comments