Browse Source

Made iRay sorted to find proper hit

Gyedo Jeon 16 years ago
parent
commit
d105aa08ea
1 changed files with 1 additions and 0 deletions
  1. 1 0
      direct/src/leveleditor/LevelEditorUIBase.py

+ 1 - 0
direct/src/leveleditor/LevelEditorUIBase.py

@@ -55,6 +55,7 @@ class PandaTextDropTarget(wx.TextDropTarget):
                 v.normalize()
                 return v.dot(n) >= 0                
 
+            iRay.sortEntries()
             for entry in iRay.getEntries():
                 if isEntryBackfacing(iRay, entry):
                     pass