Mercurial > fife-parpg
comparison tools/editor/scripts/mapview.py @ 403:ba2d683ccee3
Use list() instead of slice. Python did not like to use the slice on an empty C++ vector.
author | cheesesucker@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Fri, 29 Jan 2010 11:04:06 +0000 |
parents | bc6730a27820 |
children | 9d94f4676d17 |
comparison
equal
deleted
inserted
replaced
402:bc6730a27820 | 403:ba2d683ccee3 |
---|---|
145 | 145 |
146 self._controller.cleanUp() | 146 self._controller.cleanUp() |
147 | 147 |
148 # Remove cameras | 148 # Remove cameras |
149 view = self._editor.getEngine().getView() | 149 view = self._editor.getEngine().getView() |
150 for cam in view.getCameras()[:]: | 150 for cam in list(view.getCameras()): |
151 if cam.getLocationRef().getMap().getId() == self._map.getId(): | 151 if cam.getLocationRef().getMap().getId() == self._map.getId(): |
152 cam.setEnabled(False) | 152 cam.setEnabled(False) |
153 view.removeCamera(cam) | 153 view.removeCamera(cam) |
154 | 154 |
155 view.resetRenderers() | 155 view.resetRenderers() |