|
@@ -348,16 +348,16 @@ struct Texture {
|
|
|
// empty
|
|
|
}
|
|
|
|
|
|
- Texture(Texture &&other) AI_NO_EXCEPT : mTextureBlend(std::move(other.mTextureBlend)),
|
|
|
+ Texture(Texture &&other) AI_NO_EXCEPT : mTextureBlend(other.mTextureBlend),
|
|
|
mMapName(std::move(other.mMapName)),
|
|
|
- mOffsetU(std::move(other.mOffsetU)),
|
|
|
- mOffsetV(std::move(other.mOffsetV)),
|
|
|
- mScaleU(std::move(other.mScaleU)),
|
|
|
- mScaleV(std::move(other.mScaleV)),
|
|
|
- mRotation(std::move(other.mRotation)),
|
|
|
- mMapMode(std::move(other.mMapMode)),
|
|
|
- bPrivate(std::move(other.bPrivate)),
|
|
|
- iUVSrc(std::move(other.iUVSrc)) {
|
|
|
+ mOffsetU(other.mOffsetU),
|
|
|
+ mOffsetV(other.mOffsetV),
|
|
|
+ mScaleU(other.mScaleU),
|
|
|
+ mScaleV(other.mScaleV),
|
|
|
+ mRotation(other.mRotation),
|
|
|
+ mMapMode(other.mMapMode),
|
|
|
+ bPrivate(other.bPrivate),
|
|
|
+ iUVSrc(other.iUVSrc) {
|
|
|
// empty
|
|
|
}
|
|
|
|
|
@@ -366,16 +366,16 @@ struct Texture {
|
|
|
return *this;
|
|
|
}
|
|
|
|
|
|
- mTextureBlend = std::move(other.mTextureBlend);
|
|
|
+ mTextureBlend = other.mTextureBlend;
|
|
|
mMapName = std::move(other.mMapName);
|
|
|
- mOffsetU = std::move(other.mOffsetU);
|
|
|
- mOffsetV = std::move(other.mOffsetV);
|
|
|
- mScaleU = std::move(other.mScaleU);
|
|
|
- mScaleV = std::move(other.mScaleV);
|
|
|
- mRotation = std::move(other.mRotation);
|
|
|
- mMapMode = std::move(other.mMapMode);
|
|
|
- bPrivate = std::move(other.bPrivate);
|
|
|
- iUVSrc = std::move(other.iUVSrc);
|
|
|
+ mOffsetU = other.mOffsetU;
|
|
|
+ mOffsetV = other.mOffsetV;
|
|
|
+ mScaleU = other.mScaleU;
|
|
|
+ mScaleV = other.mScaleV;
|
|
|
+ mRotation = other.mRotation;
|
|
|
+ mMapMode = other.mMapMode;
|
|
|
+ bPrivate = other.bPrivate;
|
|
|
+ iUVSrc = other.iUVSrc;
|
|
|
|
|
|
return *this;
|
|
|
}
|
|
@@ -461,13 +461,13 @@ struct Material {
|
|
|
|
|
|
//! Move constructor. This is explicitly written because MSVC doesn't support defaulting it
|
|
|
Material(Material &&other) AI_NO_EXCEPT : mName(std::move(other.mName)),
|
|
|
- mDiffuse(std::move(other.mDiffuse)),
|
|
|
- mSpecularExponent(std::move(other.mSpecularExponent)),
|
|
|
- mShininessStrength(std::move(other.mShininessStrength)),
|
|
|
- mSpecular(std::move(other.mSpecular)),
|
|
|
- mAmbient(std::move(other.mAmbient)),
|
|
|
- mShading(std::move(other.mShading)),
|
|
|
- mTransparency(std::move(other.mTransparency)),
|
|
|
+ mDiffuse(other.mDiffuse),
|
|
|
+ mSpecularExponent(other.mSpecularExponent),
|
|
|
+ mShininessStrength(other.mShininessStrength),
|
|
|
+ mSpecular(other.mSpecular),
|
|
|
+ mAmbient(other.mAmbient),
|
|
|
+ mShading(other.mShading),
|
|
|
+ mTransparency(other.mTransparency),
|
|
|
sTexDiffuse(std::move(other.sTexDiffuse)),
|
|
|
sTexOpacity(std::move(other.sTexOpacity)),
|
|
|
sTexSpecular(std::move(other.sTexSpecular)),
|
|
@@ -475,10 +475,10 @@ struct Material {
|
|
|
sTexBump(std::move(other.sTexBump)),
|
|
|
sTexEmissive(std::move(other.sTexEmissive)),
|
|
|
sTexShininess(std::move(other.sTexShininess)),
|
|
|
- mBumpHeight(std::move(other.mBumpHeight)),
|
|
|
- mEmissive(std::move(other.mEmissive)),
|
|
|
+ mBumpHeight(other.mBumpHeight),
|
|
|
+ mEmissive(other.mEmissive),
|
|
|
sTexAmbient(std::move(other.sTexAmbient)),
|
|
|
- mTwoSided(std::move(other.mTwoSided)) {
|
|
|
+ mTwoSided(other.mTwoSided) {
|
|
|
// empty
|
|
|
}
|
|
|
|
|
@@ -488,13 +488,13 @@ struct Material {
|
|
|
}
|
|
|
|
|
|
mName = std::move(other.mName);
|
|
|
- mDiffuse = std::move(other.mDiffuse);
|
|
|
- mSpecularExponent = std::move(other.mSpecularExponent);
|
|
|
- mShininessStrength = std::move(other.mShininessStrength),
|
|
|
- mSpecular = std::move(other.mSpecular);
|
|
|
- mAmbient = std::move(other.mAmbient);
|
|
|
- mShading = std::move(other.mShading);
|
|
|
- mTransparency = std::move(other.mTransparency);
|
|
|
+ mDiffuse = other.mDiffuse;
|
|
|
+ mSpecularExponent = other.mSpecularExponent;
|
|
|
+ mShininessStrength = other.mShininessStrength,
|
|
|
+ mSpecular = other.mSpecular;
|
|
|
+ mAmbient = other.mAmbient;
|
|
|
+ mShading = other.mShading;
|
|
|
+ mTransparency = other.mTransparency;
|
|
|
sTexDiffuse = std::move(other.sTexDiffuse);
|
|
|
sTexOpacity = std::move(other.sTexOpacity);
|
|
|
sTexSpecular = std::move(other.sTexSpecular);
|
|
@@ -502,10 +502,10 @@ struct Material {
|
|
|
sTexBump = std::move(other.sTexBump);
|
|
|
sTexEmissive = std::move(other.sTexEmissive);
|
|
|
sTexShininess = std::move(other.sTexShininess);
|
|
|
- mBumpHeight = std::move(other.mBumpHeight);
|
|
|
- mEmissive = std::move(other.mEmissive);
|
|
|
+ mBumpHeight = other.mBumpHeight;
|
|
|
+ mEmissive = other.mEmissive;
|
|
|
sTexAmbient = std::move(other.sTexAmbient);
|
|
|
- mTwoSided = std::move(other.mTwoSided);
|
|
|
+ mTwoSided = other.mTwoSided;
|
|
|
|
|
|
return *this;
|
|
|
}
|