# matplotlib__matplotlib-23562
# Loki Mode Multi-Agent Patch
# Attempts: 1

--- a/lib/mpl_toolkits/mplot3d/art3d.py
+++ b/lib/mpl_toolkits/mplot3d/art3d.py
@@ -867,10 +867,14 @@ class Poly3DCollection(PolyCollection):
         self.stale = True
 
     def get_facecolor(self):
-        return self._facecolors2d
+        if hasattr(self, '_facecolors2d'):
+            return self._facecolors2d
+        return self._facecolors3d
 
     def get_edgecolor(self):
-        return self._edgecolors2d
+        if hasattr(self, '_edgecolors2d'):
+            return self._edgecolors2d
+        return self._edgecolors3d
 
 
 def poly_collection_2d_to_3d(col, zs=0, zdir='z'):