Sfoglia il codice sorgente

Merge pull request #2528 from marxin/fix-gcc-9-warning

Fix a GCC 9 warning:
Kim Kulling 6 anni fa
parent
commit
fa827f9075
1 ha cambiato i file con 8 aggiunte e 1 eliminazioni
  1. 8 1
      include/assimp/types.h

+ 8 - 1
include/assimp/types.h

@@ -161,7 +161,14 @@ struct aiColor3D
     explicit aiColor3D (ai_real _r) : r(_r), g(_r), b(_r) {}
     aiColor3D (const aiColor3D& o) : r(o.r), g(o.g), b(o.b) {}
 
-    /** Component-wise comparison */
+	aiColor3D &operator=(const aiColor3D &o) {
+		r = o.r;
+		g = o.g;
+		b = o.b;
+		return *this;
+	}
+
+	/** Component-wise comparison */
     // TODO: add epsilon?
     bool operator == (const aiColor3D& other) const
         {return r == other.r && g == other.g && b == other.b;}