Changeset 485:69b8d6cbc692


Ignore:
Timestamp:
09/07/13 15:29:15 (8 years ago)
Author:
Neil Muller <drnlmuller@…>
Branch:
default
Phase:
public
Rebase:
61363734343537306161356561663434376631633439653534373466303663343637386561306263
Message:

Ensure we draw background once only

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/level.py

    r437 r485  
    205205
    206206    def get_background(self):
    207         self._draw_background()
    208         self._draw_exterior()
    209         # Draw polygons
    210         self._draw_walls()
     207        if self._surface is None:
     208            self._draw_background()
     209            self._draw_exterior()
     210            # Draw polygons
     211            self._draw_walls()
    211212        return self._surface
    212213
Note: See TracChangeset for help on using the changeset viewer.