- SMaterial copy constructor is removed entirely
(same change in upstream trunk r6362)
- CMatrix4 gets an explicit, but default copy constructor readded
FogEnable(false), NormalizeNormals(false), UseMipMaps(true)\r
{ }\r
\r
- //! Copy constructor\r
- /** \param other Material to copy from. */\r
- SMaterial(const SMaterial& other)\r
- {\r
- // These pointers are checked during assignment\r
- for (u32 i=0; i<MATERIAL_MAX_TEXTURES; ++i)\r
- TextureLayer[i].TextureMatrix = 0;\r
- *this = other;\r
- }\r
-\r
//! Texture layer array.\r
SMaterialLayer TextureLayer[MATERIAL_MAX_TEXTURES];\r
\r
//! Simple operator for linearly accessing every element of the matrix.\r
const T& operator[](u32 index) const { return M[index]; }\r
\r
+ //! Sets this matrix equal to the other matrix.\r
+ CMatrix4<T>& operator=(const CMatrix4<T> &other) = default;\r
+\r
//! Sets all elements of this matrix to the value.\r
inline CMatrix4<T>& operator=(const T& scalar);\r
\r