]> Shamusworld >> Repos - architektonas/blobdiff - src/container.cpp
Added new triangulation tool, ability to snap to endpoints/intersections.
[architektonas] / src / container.cpp
index 2eca9f4573473c0c772a4efd96060836e6bc15ec..9c3d403bf74b8864af6cfea0b0a4a0f2e036c520 100644 (file)
@@ -204,7 +204,7 @@ class so that we can leverage that stuff here as well.
 /*virtual*/ bool Container::PointerMoved(Vector point)
 {
        std::vector<Object *>::iterator i;
-       lastObjectHovered = NULL;
+       lastObjectHovered = penultimateObjectHovered = NULL;
 
        if (!isTopLevelContainer)
        {
@@ -261,7 +261,10 @@ class so that we can leverage that stuff here as well.
        {
 //             if (objects[i]->GetState() == OSSelected)
                if ((*i)->PointerMoved(point))
+               {
+                       penultimateObjectHovered = lastObjectHovered;
                        lastObjectHovered = *i;
+               }
        }
 
        // Generic container doesn't need this???