From 822d327236f29d87a2e465d52ed0e2ef20087963 Mon Sep 17 00:00:00 2001 From: Nehon Date: Wed, 18 Nov 2015 15:06:58 +0100 Subject: [PATCH] Image now properly save it's colorSpace when saved --- jme3-core/src/main/java/com/jme3/texture/Image.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jme3-core/src/main/java/com/jme3/texture/Image.java b/jme3-core/src/main/java/com/jme3/texture/Image.java index ca9404720..91b80ad3e 100644 --- a/jme3-core/src/main/java/com/jme3/texture/Image.java +++ b/jme3-core/src/main/java/com/jme3/texture/Image.java @@ -1041,6 +1041,7 @@ public class Image extends NativeObject implements Savable /*, Cloneable*/ { capsule.write(mipMapSizes, "mipMapSizes", null); capsule.write(multiSamples, "multiSamples", 1); capsule.writeByteBufferArrayList(data, "data", null); + capsule.write(colorSpace, "colorSpace", null); } public void read(JmeImporter e) throws IOException { @@ -1052,6 +1053,7 @@ public class Image extends NativeObject implements Savable /*, Cloneable*/ { mipMapSizes = capsule.readIntArray("mipMapSizes", null); multiSamples = capsule.readInt("multiSamples", 1); data = (ArrayList) capsule.readByteBufferArrayList("data", null); + colorSpace = capsule.readEnum("colorSpace", ColorSpace.class, null); if (mipMapSizes != null) { needGeneratedMips = false;