Skip to content

Commit

Permalink
amf: Don't load(assimp) id conan is availab le
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-sonestedt committed May 22, 2024
1 parent 712f6f7 commit b8bbf1d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/plugins/geometryloaders/amf/amf.pro
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
TARGET = amfgeometryloader
QT += core-private 3dcore 3dcore-private 3drender 3drender-private
CONFIG += assimp

INCLUDEPATH += \
$$MOC_DIR
Expand All @@ -17,17 +16,17 @@ SOURCES += \
DISTFILES += \
amf.json

exists($$BUILD_TREE/conanbuildinfo.pri): include($$BUILD_TREE/conanbuildinfo.pri)
else: error("Need assimp included via conan in the top level project")

PLUGIN_TYPE = geometryloaders
PLUGIN_CLASS_NAME = AmfGeometryLoaderPlugin

load(assimp)
load(qt_build_config)
load(qt_plugin)

exists($$BUILD_TREE/conanbuildinfo.pri) {
CONFIG += conan_basic_setup
include($$BUILD_TREE/conanbuildinfo.pri)
} else {
CONFIG += assimp
warning("Need assimp included via conan in the top level project, attempting to sideload")
load(assimp)
}
1 change: 1 addition & 0 deletions src/plugins/geometryloaders/amf/amfgeometryloader.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

class AmfGeometryLoader : public Qt3DRender::BaseGeometryLoader
{
Q_OBJECT
protected:
bool doLoad(QIODevice* ioDev, const QString& subMesh) final;
};
Expand Down

0 comments on commit b8bbf1d

Please sign in to comment.