Changeset 161:134ed5e026ae


Ignore:
Timestamp:
Apr 5, 2011, 9:29:26 PM (9 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
Message:

Neatean _check_mask a bit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skaapsteker/physics.py

    r159 r161  
    8585
    8686    def _check_mask(self):
    87         image_id = id(self.image)
    88         mask = self._mask_cache.get(image_id, None)
     87        mask = self._mask_cache.get(id(self.image))
    8988        if mask is None:
    90             mask = self._mask_cache[image_id] = from_surface(self.image)
     89            mask = self._mask_cache[id(self.image)] = from_surface(self.image)
    9190        self.mask = mask
    9291
Note: See TracChangeset for help on using the changeset viewer.