From 7beebfc4c0db47d0a2f0af3388b06f5c96f79ccf Mon Sep 17 00:00:00 2001 From: "Kae..pl" Date: Mon, 25 Jun 2012 20:57:02 +0000 Subject: [PATCH] Fix for mirror modifier. Wrong axis was mirrored when Y is up axis was set. git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9525 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../jme3/scene/plugins/blender/modifiers/MirrorModifier.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/engine/src/blender/com/jme3/scene/plugins/blender/modifiers/MirrorModifier.java b/engine/src/blender/com/jme3/scene/plugins/blender/modifiers/MirrorModifier.java index bf8d91810..2e391d33c 100644 --- a/engine/src/blender/com/jme3/scene/plugins/blender/modifiers/MirrorModifier.java +++ b/engine/src/blender/com/jme3/scene/plugins/blender/modifiers/MirrorModifier.java @@ -74,6 +74,11 @@ import java.util.logging.Logger; (flag & 0x10) != 0 ? -1.0f : 1.0f, (flag & 0x20) != 0 ? -1.0f : 1.0f }; + if(blenderContext.getBlenderKey().isFixUpAxis()) { + float temp = mirrorFactor[1]; + mirrorFactor[1] = mirrorFactor[2]; + mirrorFactor[2] = temp; + } float[] center = new float[]{0.0f, 0.0f, 0.0f}; Pointer pObject = (Pointer) modifierData.get("mirrorob"); if (pObject != null) {