Changeset 3506


Ignore:
Timestamp:
11/09/10 21:39:45 (4 years ago)
Author:
helios2000
Message:
  • Fixed the getMatchingInstances() functions. So instance selecting should work again.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/engine/core/view/camera.cpp

    r3505 r3506  
    456456        void Camera::getMatchingInstances(ScreenPoint screen_coords, Layer& layer, std::list<Instance*>& instances) { 
    457457                instances.clear(); 
    458                 m_layer_to_instances.clear(); 
    459458                const RenderList& layer_instances = m_layer_to_instances[&layer]; 
    460459                RenderList::const_iterator instance_it = layer_instances.end(); 
     
    489488        void Camera::getMatchingInstances(Rect screen_rect, Layer& layer, std::list<Instance*>& instances) { 
    490489                instances.clear(); 
    491                 m_layer_to_instances.clear(); 
    492490                const RenderList& layer_instances = m_layer_to_instances[&layer]; 
    493491                RenderList::const_iterator instance_it = layer_instances.end(); 
     
    530528        void Camera::getMatchingInstances(Location& loc, std::list<Instance*>& instances, bool use_exactcoordinates) { 
    531529                instances.clear(); 
    532                 m_layer_to_instances.clear(); 
    533530                const RenderList& layer_instances = m_layer_to_instances[loc.getLayer()]; 
    534531                RenderList::const_iterator instance_it = layer_instances.end(); 
Note: See TracChangeset for help on using the changeset viewer.