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
This commit is contained in:
Kae..pl 2012-06-25 20:57:02 +00:00
parent cd79395d9b
commit 7beebfc4c0

View File

@ -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) {