diff options
author | Alessandro Borges <[email protected]> | 2009-06-19 21:07:25 +0000 |
---|---|---|
committer | Alessandro Borges <[email protected]> | 2009-06-19 21:07:25 +0000 |
commit | 9cc1e2bc13d8cfec2a60b1002b625a92f86bcfa9 (patch) | |
tree | c1b04fd3eb8ef521ac24909148bf16ad1d4ea4ef /src | |
parent | 05e805403b9f9608e851055d5e831eadbce20f4a (diff) |
Issue number: 620 - ROTATE_NONE is not considered in OrientedShape3D
Obtained from: dev1.6 branch
Submitted by: ylliac forum member
Reviewed by: Aces
Fixed as suggested by ylliac:
if(mode == ROTATE_ABOUT_AXIS){
//rotation about axis
}else if(mode == ROTATE_ABOUT_POINT{
//rotation about point
}
git-svn-id: https://svn.java.net/svn/j3d-core~svn/branches/dev-1_6@943 ba19aa83-45c5-6ac9-afd3-db810772062c
Diffstat (limited to 'src')
-rw-r--r-- | src/classes/share/javax/media/j3d/OrientedShape3DRetained.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/classes/share/javax/media/j3d/OrientedShape3DRetained.java b/src/classes/share/javax/media/j3d/OrientedShape3DRetained.java index 6db249d..1e338ba 100644 --- a/src/classes/share/javax/media/j3d/OrientedShape3DRetained.java +++ b/src/classes/share/javax/media/j3d/OrientedShape3DRetained.java @@ -399,7 +399,7 @@ class OrientedShape3DRetained extends Shape3DRetained { orientedxform.setIdentity(); } - } else { // rotate about point + } else if(mode == OrientedShape3D.ROTATE_ABOUT_POINT ){ // rotate about point // Need to rotate Z axis to point to eye, and Y axis to be // parallel to view platform Y axis, rotating around rotation pt |