mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 03:54:09 +02:00
fixes for OS X build
This commit is contained in:
parent
0755b77615
commit
cc7dd2162b
1 changed files with 6 additions and 2 deletions
|
@ -66,9 +66,13 @@ void BakeAssetTask::run() {
|
|||
std::unique_ptr<Baker> baker;
|
||||
|
||||
if (_assetPath.endsWith(".fbx")) {
|
||||
baker = std::make_unique<FBXBaker>(QUrl("file:///" + _filePath), fn, PathUtils::generateTemporaryDir());
|
||||
baker = std::unique_ptr<FBXBaker> {
|
||||
new FBXBaker(QUrl("file:///" + _filePath), fn, PathUtils::generateTemporaryDir())
|
||||
};
|
||||
} else {
|
||||
baker = std::make_unique<TextureBaker>(QUrl("file:///" + _filePath), image::TextureUsage::CUBE_TEXTURE, PathUtils::generateTemporaryDir());
|
||||
baker = std::unique_ptr<TextureBaker> {
|
||||
new TextureBaker(QUrl("file:///" + _filePath), image::TextureUsage::CUBE_TEXTURE, PathUtils::generateTemporaryDir())
|
||||
};
|
||||
}
|
||||
|
||||
QEventLoop loop;
|
||||
|
|
Loading…
Reference in a new issue