Changeset 485:69b8d6cbc692 for nagslang


Ignore:
Timestamp:
Sep 7, 2013, 3:29:15 PM (7 years ago)
Author:
Neil Muller <drnlmuller@…>
Branch:
default
rebase_source:
a6744570aa5eaf447f1c49e5474f06c4678ea0bc
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.