diff tools/editor/scripts/mapcontroller.py @ 432:4f2752d45458

This changes the behavior of Camera::resetRenderers(). It will no longer activate all layers for every renderer. This is now up to the clients to do. It also adds some code to the map loader that will automatically activate the layers in the InstanceRenderer. Clients that use the any of the renderers will now have to activate the layer they want to use. Also updated rio_de_hola and the editor to reflect changes. fixes[t:457]
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Wed, 24 Feb 2010 20:03:52 +0000
parents e29fbf84cb41
children b2feacaed53c
line wrap: on
line diff
--- a/tools/editor/scripts/mapcontroller.py	Tue Feb 23 19:44:36 2010 +0000
+++ b/tools/editor/scripts/mapcontroller.py	Wed Feb 24 20:03:52 2010 +0000
@@ -88,6 +88,15 @@
 				break
 
 		self._layer = self._map.getLayers()[0]
+		
+		gridrenderer = self._camera.getRenderer('GridRenderer')
+		gridrenderer.activateAllLayers(self._map)
+
+		blockrenderer = self._camera.getRenderer('BlockingInfoRenderer')
+		blockrenderer.activateAllLayers(self._map)
+
+		cellrenderer = self._camera.getRenderer('CellSelectionRenderer')
+		cellrenderer.activateAllLayers(self._map)
 
 	def getMap(self):
 		return self._map