mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
pass FBXGeometry by const reference
this fixes a bug on windows about misaligned data in function call
This commit is contained in:
parent
547a416c3b
commit
35cbc9a41d
2 changed files with 2 additions and 2 deletions
|
@ -265,7 +265,7 @@ bool ModelUploader::zip() {
|
|||
return true;
|
||||
}
|
||||
|
||||
void ModelUploader::populateBasicMapping(QVariantHash& mapping, QString filename, FBXGeometry geometry) {
|
||||
void ModelUploader::populateBasicMapping(QVariantHash& mapping, QString filename, const FBXGeometry& geometry) {
|
||||
if (!mapping.contains(NAME_FIELD)) {
|
||||
mapping.insert(NAME_FIELD, QFileInfo(filename).baseName());
|
||||
}
|
||||
|
|
|
@ -53,7 +53,7 @@ private:
|
|||
ModelUploader(ModelType type);
|
||||
~ModelUploader();
|
||||
|
||||
void populateBasicMapping(QVariantHash& mapping, QString filename, FBXGeometry geometry);
|
||||
void populateBasicMapping(QVariantHash& mapping, QString filename, const FBXGeometry& geometry);
|
||||
bool zip();
|
||||
bool addTextures(const QString& texdir, const FBXGeometry& geometry);
|
||||
bool addPart(const QString& path, const QString& name, bool isTexture = false);
|
||||
|
|
Loading…
Reference in a new issue