changeset 676:f73be43f69c8

* Fixed the getMatchingInstances() functions. So instance selecting should work again.
author helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
date Tue, 09 Nov 2010 21:39:45 +0000
parents eb9cad5fb771
children bb26a76458c6
files engine/core/view/camera.cpp
diffstat 1 files changed, 0 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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<Instance*>& 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<Instance*>& 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<Instance*>& 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()) {