Merge pull request #2782 from migenius/migenius-fix-doubleexport
Migenius fix doubleexportpull/2790/head
commit
12b7fafb3f
|
@ -447,7 +447,6 @@ aiReturn Exporter::Export( const aiScene* pScene, const char* pFormatId, const c
|
||||||
ExportProperties* pProp = pProperties ? (ExportProperties*)pProperties : &emptyProperties;
|
ExportProperties* pProp = pProperties ? (ExportProperties*)pProperties : &emptyProperties;
|
||||||
pProp->SetPropertyBool("bJoinIdenticalVertices", must_join_again);
|
pProp->SetPropertyBool("bJoinIdenticalVertices", must_join_again);
|
||||||
exp.mExportFunction(pPath,pimpl->mIOSystem.get(),scenecopy.get(), pProp);
|
exp.mExportFunction(pPath,pimpl->mIOSystem.get(),scenecopy.get(), pProp);
|
||||||
exp.mExportFunction(pPath,pimpl->mIOSystem.get(),scenecopy.get(), pProp);
|
|
||||||
|
|
||||||
pimpl->mProgressHandler->UpdateFileWrite(4, 4);
|
pimpl->mProgressHandler->UpdateFileWrite(4, 4);
|
||||||
} catch (DeadlyExportError& err) {
|
} catch (DeadlyExportError& err) {
|
||||||
|
|
|
@ -273,14 +273,14 @@ aiReturn aiGetMaterialColor(const aiMaterial* pMat,
|
||||||
}
|
}
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
// Get a aiUVTransform (4 floats) from the material
|
// Get a aiUVTransform (5 floats) from the material
|
||||||
aiReturn aiGetMaterialUVTransform(const aiMaterial* pMat,
|
aiReturn aiGetMaterialUVTransform(const aiMaterial* pMat,
|
||||||
const char* pKey,
|
const char* pKey,
|
||||||
unsigned int type,
|
unsigned int type,
|
||||||
unsigned int index,
|
unsigned int index,
|
||||||
aiUVTransform* pOut)
|
aiUVTransform* pOut)
|
||||||
{
|
{
|
||||||
unsigned int iMax = 4;
|
unsigned int iMax = 5;
|
||||||
return aiGetMaterialFloatArray(pMat,pKey,type,index,(ai_real*)pOut,&iMax);
|
return aiGetMaterialFloatArray(pMat,pKey,type,index,(ai_real*)pOut,&iMax);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -205,7 +205,7 @@ inline void SetMaterialTextureProperty(std::vector<int> &embeddedTexIdxs, Asset
|
||||||
if (prop.textureTransformSupported) {
|
if (prop.textureTransformSupported) {
|
||||||
aiUVTransform transform;
|
aiUVTransform transform;
|
||||||
transform.mTranslation.x = prop.TextureTransformExt_t.offset[0];
|
transform.mTranslation.x = prop.TextureTransformExt_t.offset[0];
|
||||||
transform.mTranslation.y = prop.TextureTransformExt_t.offset[0];
|
transform.mTranslation.y = prop.TextureTransformExt_t.offset[1];
|
||||||
transform.mRotation = prop.TextureTransformExt_t.rotation;
|
transform.mRotation = prop.TextureTransformExt_t.rotation;
|
||||||
transform.mScaling.x = prop.TextureTransformExt_t.scale[0];
|
transform.mScaling.x = prop.TextureTransformExt_t.scale[0];
|
||||||
transform.mScaling.y = prop.TextureTransformExt_t.scale[1];
|
transform.mScaling.y = prop.TextureTransformExt_t.scale[1];
|
||||||
|
|
Loading…
Reference in New Issue