# HG changeset patch # User helios2000@33b003aa-7bff-0310-803a-e67f0ece8222 # Date 1289338785 0 # Node ID f73be43f69c8dd5b6eb4826116e7bf315e8adc88 # Parent eb9cad5fb771e26308ed32498982c3aa64b72bc2 * Fixed the getMatchingInstances() functions. So instance selecting should work again. diff -r eb9cad5fb771 -r f73be43f69c8 engine/core/view/camera.cpp --- a/engine/core/view/camera.cpp Tue Nov 09 19:55:46 2010 +0000 +++ b/engine/core/view/camera.cpp Tue Nov 09 21:39:45 2010 +0000 @@ -455,7 +455,6 @@ void Camera::getMatchingInstances(ScreenPoint screen_coords, Layer& layer, std::list& instances) { instances.clear(); - m_layer_to_instances.clear(); const RenderList& layer_instances = m_layer_to_instances[&layer]; RenderList::const_iterator instance_it = layer_instances.end(); while (instance_it != layer_instances.begin()) { @@ -488,7 +487,6 @@ void Camera::getMatchingInstances(Rect screen_rect, Layer& layer, std::list& instances) { instances.clear(); - m_layer_to_instances.clear(); const RenderList& layer_instances = m_layer_to_instances[&layer]; RenderList::const_iterator instance_it = layer_instances.end(); while (instance_it != layer_instances.begin()) { @@ -529,7 +527,6 @@ void Camera::getMatchingInstances(Location& loc, std::list& instances, bool use_exactcoordinates) { instances.clear(); - m_layer_to_instances.clear(); const RenderList& layer_instances = m_layer_to_instances[loc.getLayer()]; RenderList::const_iterator instance_it = layer_instances.end(); while (instance_it != layer_instances.begin()) {