Mercurial > fife-parpg
comparison tools/editor/scripts/gui/cameradialog.py @ 561:85e8986e7b8f
Fixed a bug when creating a new map. It was introduced by a recent commit that removed the requirement to pass a model coordinate to the camera's constructor.
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Thu, 24 Jun 2010 18:40:30 +0000 |
parents | 9d94f4676d17 |
children | e34b44afd428 |
comparison
equal
deleted
inserted
replaced
560:69d50e751c9a | 561:85e8986e7b8f |
---|---|
98 tilt = int(self._widget.collectData('tiltBox')) | 98 tilt = int(self._widget.collectData('tiltBox')) |
99 except ValueError: | 99 except ValueError: |
100 print 'Please enter positive integer values for rotation and tilt.' | 100 print 'Please enter positive integer values for rotation and tilt.' |
101 return | 101 return |
102 | 102 |
103 cam = map.addCamera(str(id), layer, viewport, fife.ExactModelCoordinate(0,0,0)) | 103 cam = map.addCamera(str(id), layer, viewport) |
104 cam.setCellImageDimensions(refw, refh) | 104 cam.setCellImageDimensions(refw, refh) |
105 cam.setRotation(rot) | 105 cam.setRotation(rot) |
106 cam.setTilt(tilt) | 106 cam.setTilt(tilt) |
107 | 107 |
108 self._widget.hide() | 108 self._widget.hide() |