comparison tools/editor/scripts/gui/layerdialog.py @ 422:9d94f4676d17

Moved the management of cameras into the Map class. The View class no longer exists since it now serves no purpose. The engine class itself holds the renderers and these get passed to each map that is loaded and then passed to each camera on each map. This change makes it possible for multiple maps to be loaded at the same time with the same camera id without a name clash. fixes[t:342]
author vtchill@33b003aa-7bff-0310-803a-e67f0ece8222
date Fri, 12 Feb 2010 06:34:50 +0000
parents 64738befdf3b
children e34b44afd428
comparison
equal deleted inserted replaced
421:293e812316c0 422:9d94f4676d17
161 return 161 return
162 162
163 layer.setPathingStrategy(pathing) 163 layer.setPathingStrategy(pathing)
164 layer.setLayerTransparency(transparency) 164 layer.setLayerTransparency(transparency)
165 165
166 self.engine.getView().resetRenderers() 166 for cam in self.map.getCameras():
167 cam.resetRenderers()
167 168
168 # Hide dialog and call back 169 # Hide dialog and call back
169 self._widget.hide() 170 self._widget.hide()
170 171
171 if self.callback: 172 if self.callback: