Fix compile issue when there is no quick3dassetimport module

Change-Id: I769a977f8422e002ed5680c1788aa6d3948f0534
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
This commit is contained in:
Miikka Heikkinen
2020-03-30 11:55:30 +03:00
parent c3fca6e718
commit 8288d6e97b

View File

@@ -491,6 +491,7 @@ bool ItemLibraryAssetImporter::generateComponentIcon(int size, const QString &ic
void ItemLibraryAssetImporter::finalizeQuick3DImport() void ItemLibraryAssetImporter::finalizeQuick3DImport()
{ {
#ifdef IMPORT_QUICK3D_ASSETS
if (!isCancelled()) { if (!isCancelled()) {
// Don't allow cancel anymore as existing asset overwrites are not trivially recoverable. // Don't allow cancel anymore as existing asset overwrites are not trivially recoverable.
// Also, on Windows at least you can't delete a subdirectory of a watched directory, // Also, on Windows at least you can't delete a subdirectory of a watched directory,
@@ -532,6 +533,7 @@ void ItemLibraryAssetImporter::finalizeQuick3DImport()
notifyFinished(); notifyFinished();
} }
} }
#endif
} }
bool ItemLibraryAssetImporter::isCancelled() const bool ItemLibraryAssetImporter::isCancelled() const