diff tools/editor/scripts/mapview.py @ 570:0e0a30f0eb20

Finally found the bug when you create a new map and are unable to place instances on the map until you save and re-load the map.
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Mon, 28 Jun 2010 21:28:44 +0000
parents 9d94f4676d17
children
line wrap: on
line diff
--- a/tools/editor/scripts/mapview.py	Mon Jun 28 19:28:53 2010 +0000
+++ b/tools/editor/scripts/mapview.py	Mon Jun 28 21:28:44 2010 +0000
@@ -106,7 +106,7 @@
 			print "Camera is not associated with this map"
 			return
 			
-		self._camera = None
+		self._camera = camera
 	
 	def getController(self):
 		return self._controller
@@ -154,4 +154,4 @@
 		self._cleanUp()
 		
 		events.postMapClosed.send(sender=self, mapview=self)
-	
\ No newline at end of file
+