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:
parent
cd79395d9b
commit
7beebfc4c0
@ -74,6 +74,11 @@ import java.util.logging.Logger;
|
|||||||
(flag & 0x10) != 0 ? -1.0f : 1.0f,
|
(flag & 0x10) != 0 ? -1.0f : 1.0f,
|
||||||
(flag & 0x20) != 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};
|
float[] center = new float[]{0.0f, 0.0f, 0.0f};
|
||||||
Pointer pObject = (Pointer) modifierData.get("mirrorob");
|
Pointer pObject = (Pointer) modifierData.get("mirrorob");
|
||||||
if (pObject != null) {
|
if (pObject != null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user