viewer: check if file exists before passing to OIIO
This is valid in our system and suppresses OIIO message when files do not exist.
This commit is contained in:
@@ -87,7 +87,7 @@ void ViewerGLWidget::SetImage(const QString &fn)
|
||||
{
|
||||
has_image_ = false;
|
||||
|
||||
if (!fn.isEmpty()) {
|
||||
if (!fn.isEmpty() && QFileInfo::exists(fn)) {
|
||||
auto input = OIIO::ImageInput::open(fn.toStdString());
|
||||
|
||||
if (input) {
|
||||
|
||||
Reference in New Issue
Block a user