Browse Source

3DS: Add explicit default constructors and assignment operators to Material

Turo Lamminen 7 years ago
parent
commit
9e7b21f83d
1 changed files with 10 additions and 0 deletions
  1. 10 0
      code/3DSHelper.h

+ 10 - 0
code/3DSHelper.h

@@ -387,6 +387,16 @@ struct Material
         mName = szTemp;
     }
 
+
+    Material(const Material &other)            = default;
+    Material(Material &&other)                 = default;
+
+    Material &operator=(const Material &other) = default;
+    Material &operator=(Material &&other)      = default;
+
+    ~Material() {}
+
+
     //! Name of the material
     std::string mName;
     //! Diffuse color of the material