diff options
author | Chien Yang <[email protected]> | 2005-10-26 07:22:34 +0000 |
---|---|---|
committer | Chien Yang <[email protected]> | 2005-10-26 07:22:34 +0000 |
commit | afbcb168442d8c8d8cf8a814337bbf1bc69939aa (patch) | |
tree | 3e13c0a2a37702e1c4754e78b7ece897a0cd580f /src | |
parent | 4da85d137678410997036ef79c835bbdf56ade59 (diff) |
Fixed issue 184 : Illegal return value if flag NODE is omitted
git-svn-id: https://svn.java.net/svn/j3d-core~svn/trunk@448 ba19aa83-45c5-6ac9-afd3-db810772062c
Diffstat (limited to 'src')
-rw-r--r-- | src/classes/share/javax/media/j3d/PickInfo.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/classes/share/javax/media/j3d/PickInfo.java b/src/classes/share/javax/media/j3d/PickInfo.java index 78c8ab3..24e416d 100644 --- a/src/classes/share/javax/media/j3d/PickInfo.java +++ b/src/classes/share/javax/media/j3d/PickInfo.java @@ -803,7 +803,12 @@ public class PickInfo extends Object { // Order is impt. Need to do in reverse order. for(int i = pickInfoListSize - 1; i >= 0; i--) { pickInfo = (PickInfo) pickInfoList.get(i); + pickNode = pickInfo.getNode(); + if( pickNode == null) { + // Use the piggy reference from getPickInfos() + pickNode = pickInfo.getNodeRef(); + } if (pickNode instanceof Shape3D) { |