From 913172b4908e3d67b57e2b7c25e5ab212c8be382 Mon Sep 17 00:00:00 2001 From: Atlante45 Date: Wed, 10 Feb 2016 18:09:45 -0800 Subject: [PATCH] Fix extension checking --- interface/src/Application.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 30f2802d70..c0416e75da 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -4333,8 +4333,8 @@ void Application::modelUploadFinished(AssetUpload* upload, const QString& hash) auto filename = QFileInfo(upload->getFilename()).fileName(); if ((upload->getError() == AssetUpload::NoError) && - (upload->getExtension().endsWith(FBX_EXTENSION, Qt::CaseInsensitive) || - upload->getExtension().endsWith(OBJ_EXTENSION, Qt::CaseInsensitive))) { + (FBX_EXTENSION.endsWith(upload->getExtension(), Qt::CaseInsensitive) || + OBJ_EXTENSION.endsWith(upload->getExtension(), Qt::CaseInsensitive))) { auto entities = DependencyManager::get();