fenfire-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ff-cvs] libvob/vob/buoy buoymanager.py


From: Matti Katila
Subject: [ff-cvs] libvob/vob/buoy buoymanager.py
Date: Tue, 26 Aug 2003 05:45:27 -0400

CVSROOT:        /cvsroot/libvob
Module name:    libvob
Branch:         
Changes by:     Matti Katila <address@hidden>   03/08/26 05:45:27

Modified files:
        vob/buoy       : buoymanager.py 

Log message:
        hups

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/libvob/libvob/vob/buoy/buoymanager.py.diff?tr1=1.69&tr2=1.70&r1=text&r2=text

Patches:
Index: libvob/vob/buoy/buoymanager.py
diff -u libvob/vob/buoy/buoymanager.py:1.69 libvob/vob/buoy/buoymanager.py:1.70
--- libvob/vob/buoy/buoymanager.py:1.69 Tue Aug 26 05:07:36 2003
+++ libvob/vob/buoy/buoymanager.py      Tue Aug 26 05:45:26 2003
@@ -234,18 +234,20 @@
        # Fall through if no link - need main node
         # See if anyone hit.
         hit = jarray.zeros(1, 'f')
-        theTopMostMainNode = None
+        theTopmostMainNode = None
         depth = None
        if dbg: pa( "Topmost:")
-       for single in self.singles:
+       for i in range(len(self.singles)):
+            single = self.singles[i]
            if dbg: pa( "look at:",single, single.mainNode)
             if single.mainNode.hasMouseHit(vs, x, y, hit):
                if dbg: pa( "hit:",hit[0])
                 if depth == None or depth < hit[0]:
                     depth = hit[0]
-                    theTopMostMainNode = single.mainNode
-       if dbg: pa( "Ret: ", theTopMostMainNode)
-       return theTopMostMainNode
+                    theTopmostMainNode = single.mainNode
+                    self.lastIndex = i
+       if 1 or dbg: pa( "Ret: ", theTopmostMainNode)
+       return theTopmostMainNode
         
     def findIfBuoyHit(self, vs, x, y):
        """If a buoy was hit by the coordinates, return the 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]