Mercurial > fife-parpg
comparison tools/editor/scripts/gui/cameradialog.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 | e34b44afd428 |
children |
comparison
equal
deleted
inserted
replaced
569:466d76db9701 | 570:0e0a30f0eb20 |
---|---|
104 | 104 |
105 cam = map.addCamera(str(id), layer, viewport) | 105 cam = map.addCamera(str(id), layer, viewport) |
106 cam.setCellImageDimensions(refw, refh) | 106 cam.setCellImageDimensions(refw, refh) |
107 cam.setRotation(rot) | 107 cam.setRotation(rot) |
108 cam.setTilt(tilt) | 108 cam.setTilt(tilt) |
109 | |
110 renderer = fife.InstanceRenderer.getInstance(cam) | |
111 renderer.activateAllLayers(map) | |
109 | 112 |
110 self._widget.hide() | 113 self._widget.hide() |
111 | 114 |
112 if self.callback: | 115 if self.callback: |
113 self.callback() | 116 self.callback() |