# HG changeset patch # User prock@33b003aa-7bff-0310-803a-e67f0ece8222 # Date 1277760524 0 # Node ID 0e0a30f0eb20521d55c21a99e9034308a3afb34f # Parent 466d76db97018b7b1f2db2ce84d9688ac79b32d3 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. diff -r 466d76db9701 -r 0e0a30f0eb20 tools/editor/scripts/gui/cameradialog.py --- 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() diff -r 466d76db9701 -r 0e0a30f0eb20 tools/editor/scripts/gui/layerdialog.py --- a/tools/editor/scripts/gui/layerdialog.py Mon Jun 28 19:28:53 2010 +0000 +++ b/tools/editor/scripts/gui/layerdialog.py Mon Jun 28 21:28:44 2010 +0000 @@ -26,12 +26,13 @@ from fife.extensions.pychan import dialogs class LayerDialog(object): - """ The B{LayerDialog} provides a gui dialog for creating and editing layers. + """ + The B{LayerDialog} provides a gui dialog for creating and editing layers. FIXME: - gridtypes can only be square for now - pathing strategy - """ + """ def __init__(self, engine, map, callback=None, onCancel=None, layer=None): self.engine = engine self.model = engine.getModel() diff -r 466d76db9701 -r 0e0a30f0eb20 tools/editor/scripts/mapview.py --- 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 +