From cdd6d33f685fe4aa38105956ac48920c7b019a60 Mon Sep 17 00:00:00 2001 From: sgold Date: Wed, 12 Mar 2014 19:36:14 +0000 Subject: [PATCH] Bugfix: issue #615 (backward Dome normals) in gradle-restructure git-svn-id: https://jmonkeyengine.googlecode.com/svn/branches/gradle-restructure@11075 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- jme3-core/src/main/java/com/jme3/scene/shape/Dome.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jme3-core/src/main/java/com/jme3/scene/shape/Dome.java b/jme3-core/src/main/java/com/jme3/scene/shape/Dome.java index 4494cce30..fd61ce2d3 100644 --- a/jme3-core/src/main/java/com/jme3/scene/shape/Dome.java +++ b/jme3-core/src/main/java/com/jme3/scene/shape/Dome.java @@ -250,7 +250,7 @@ public class Dome extends Mesh { BufferUtils.populateFromBuffer(tempVa, vb, i); kNormal = tempVa.subtractLocal(center); kNormal.normalizeLocal(); - if (insideView) { + if (!insideView) { nb.put(kNormal.x).put(kNormal.y).put(kNormal.z); } else { nb.put(-kNormal.x).put(-kNormal.y).put(-kNormal.z); @@ -267,7 +267,7 @@ public class Dome extends Mesh { // pole vb.put(center.x).put(center.y + radius).put(center.z); - nb.put(0).put(insideView ? 1 : -1).put(0); + nb.put(0).put(insideView ? -1 : 1).put(0); tb.put(0.5f).put(1.0f); // allocate connectivity