From 2e4148f3c3e580fee8e131030fd1e06b1e5c1a1d Mon Sep 17 00:00:00 2001 From: Kirill Vainer Date: Sat, 2 Apr 2016 15:54:45 -0400 Subject: [PATCH] merge fixes --- jme3-core/src/main/java/com/jme3/scene/Spatial.java | 4 +++- .../src/main/java/com/jme3/system/lwjgl/LwjglContext.java | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/jme3-core/src/main/java/com/jme3/scene/Spatial.java b/jme3-core/src/main/java/com/jme3/scene/Spatial.java index 6a57c4617..006b3c26e 100644 --- a/jme3-core/src/main/java/com/jme3/scene/Spatial.java +++ b/jme3-core/src/main/java/com/jme3/scene/Spatial.java @@ -1364,7 +1364,7 @@ public abstract class Spatial implements Savable, Cloneable, Collidable, Cloneab // the transforms and stuff get refreshed. clone.setTransformRefresh(); clone.setLightListRefresh(); - clone.setMatParamOverrideRefresh(); + clone.setMatParamOverrideRefresh(); return clone; } @@ -1500,6 +1500,8 @@ public abstract class Spatial implements Savable, Cloneable, Collidable, Cloneab this.localLights = cloner.clone(localLights); this.worldTransform = cloner.clone(worldTransform); this.localTransform = cloner.clone(localTransform); + this.worldOverrides = cloner.clone(worldOverrides); + this.localOverrides = cloner.clone(localOverrides); this.controls = cloner.clone(controls); // Cloner doesn't handle maps on its own just yet. diff --git a/jme3-lwjgl/src/main/java/com/jme3/system/lwjgl/LwjglContext.java b/jme3-lwjgl/src/main/java/com/jme3/system/lwjgl/LwjglContext.java index 172733cf2..d1d2dd91b 100644 --- a/jme3-lwjgl/src/main/java/com/jme3/system/lwjgl/LwjglContext.java +++ b/jme3-lwjgl/src/main/java/com/jme3/system/lwjgl/LwjglContext.java @@ -233,8 +233,8 @@ public abstract class LwjglContext implements JmeContext { if (GLContext.getCapabilities().GL_ARB_debug_output && settings.getBoolean("GraphicsDebug")) { ARBDebugOutput.glDebugMessageCallbackARB(new ARBDebugOutputCallback(new LwjglGLDebugOutputHandler())); } - renderer.setMainFrameBufferSrgb(settings.getGammaCorrection()); - renderer.setLinearizeSrgbImages(settings.getGammaCorrection()); + renderer.setMainFrameBufferSrgb(settings.isGammaCorrection()); + renderer.setLinearizeSrgbImages(settings.isGammaCorrection()); // Init input if (keyInput != null) {