Skybox stop working

Hi guys,



I just updated to the latest version of jME3, r7455, and I started getting this error when using skybox:



[java]

java.lang.IllegalArgumentException: 3D/Array images not allowed

at com.jme3.util.SkyFactory.checkImage(SkyFactory.java:44)

at com.jme3.util.SkyFactory.checkImagesForCubeMap(SkyFactory.java:60)

at com.jme3.util.SkyFactory.createSky(SkyFactory.java:83)

at com.jme3.util.SkyFactory.createSky(SkyFactory.java:111)

[/java]



You can get the same error if you run TerrainTestAdvanced



I found that if I comment out the image.getDepth() check in SkyFactory.checkImage(), then everything would work again.

Thanks, fixed

1 Like

Thanks! Awesomely fast as usual.