Ver Fonte

* Fixed exception in SkyFactory

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7460 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
sha..rd há 14 anos atrás
pai
commit
fb11b4b3ed
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      engine/src/core/com/jme3/util/SkyFactory.java

+ 2 - 2
engine/src/core/com/jme3/util/SkyFactory.java

@@ -40,8 +40,8 @@ public class SkyFactory {
     }
     }
 
 
     private static void checkImage(Image image){
     private static void checkImage(Image image){
-        if (image.getDepth() != 1)
-            throw new IllegalArgumentException("3D/Array images not allowed");
+//        if (image.getDepth() != 1)
+//            throw new IllegalArgumentException("3D/Array images not allowed");
 
 
         if (image.getWidth() != image.getHeight())
         if (image.getWidth() != image.getHeight())
             throw new IllegalArgumentException("Image width and height must be the same");
             throw new IllegalArgumentException("Image width and height must be the same");