From 1a1243743617f17f7a2b009394fac5fb05883ea1 Mon Sep 17 00:00:00 2001 From: "Sha..rd" Date: Tue, 25 Sep 2012 02:04:33 +0000 Subject: [PATCH] * Remove unneeded printlns in AudioNode and HDRRenderer * Poly offset will become disabled if factor and units are set to 0. git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9770 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/core/com/jme3/material/RenderState.java | 10 +++++++--- engine/src/core/com/jme3/post/HDRRenderer.java | 1 - 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/engine/src/core/com/jme3/material/RenderState.java b/engine/src/core/com/jme3/material/RenderState.java index cbb8ff0a9..0aa8b45d6 100644 --- a/engine/src/core/com/jme3/material/RenderState.java +++ b/engine/src/core/com/jme3/material/RenderState.java @@ -658,9 +658,13 @@ public class RenderState implements Cloneable, Savable { **/ public void setPolyOffset(float factor, float units) { applyPolyOffset = true; - offsetEnabled = true; - offsetFactor = factor; - offsetUnits = units; + if (factor == 0 && units == 0) { + offsetEnabled = false; + } else { + offsetEnabled = true; + offsetFactor = factor; + offsetUnits = units; + } cachedHashCode = -1; } diff --git a/engine/src/core/com/jme3/post/HDRRenderer.java b/engine/src/core/com/jme3/post/HDRRenderer.java index bac8334ab..8bddf9618 100644 --- a/engine/src/core/com/jme3/post/HDRRenderer.java +++ b/engine/src/core/com/jme3/post/HDRRenderer.java @@ -186,7 +186,6 @@ public class HDRRenderer implements SceneProcessor { blockSize.y / pixelSize.y); numPixels = blocks.x * blocks.y; } - System.out.println(numPixels); mat.setBoolean("Blocks", true); if (mode == LUMMODE_ENCODE_LUM)