need to check length of faces, not just it exists - it comes back as an empty array when no faces

This commit is contained in:
2025-10-04 10:37:29 +10:00
parent 4138f392d3
commit 86761994df

View File

@@ -85,9 +85,8 @@ function DrawImg()
else
$('.figcaption').hide()
// if we have faces, the enable the toggles, otherwise disable them
// and reset model select too
if( document.viewing.file_details.faces )
// if we have faces, the enable the toggles, otherwise disable them and reset model select too
if( document.viewing.file_details.faces.length )
{
$('#faces').attr('disabled', false)
$('#distance').attr('disabled', false)