Mercurial > fife-parpg
diff 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 |
line wrap: on
line diff
--- a/tools/editor/scripts/gui/cameradialog.py Mon Jun 28 19:28:53 2010 +0000 +++ b/tools/editor/scripts/gui/cameradialog.py Mon Jun 28 21:28:44 2010 +0000 @@ -106,6 +106,9 @@ cam.setCellImageDimensions(refw, refh) cam.setRotation(rot) cam.setTilt(tilt) + + renderer = fife.InstanceRenderer.getInstance(cam) + renderer.activateAllLayers(map) self._widget.hide()