# HG changeset patch # User cheesesucker@33b003aa-7bff-0310-803a-e67f0ece8222 # Date 1264763046 0 # Node ID ba2d683ccee3904bac8cc8a59905c1e422af21a2 # Parent bc6730a2782020162bef2e94f380500cf5cb5be6 Use list() instead of slice. Python did not like to use the slice on an empty C++ vector. diff -r bc6730a27820 -r ba2d683ccee3 tools/editor/scripts/mapview.py --- a/tools/editor/scripts/mapview.py Fri Jan 29 10:55:21 2010 +0000 +++ b/tools/editor/scripts/mapview.py Fri Jan 29 11:04:06 2010 +0000 @@ -147,7 +147,7 @@ # Remove cameras view = self._editor.getEngine().getView() - for cam in view.getCameras()[:]: + for cam in list(view.getCameras()): if cam.getLocationRef().getMap().getId() == self._map.getId(): cam.setEnabled(False) view.removeCamera(cam)