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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user