changeset 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 0ef7b088b3f8
files tools/editor/scripts/mapview.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)