Mercurial > traipse_dev
comparison orpg/mapper/images.py @ 15:cab94a90f9dc traipse_dev
Added 1.8.0 fix to log. Fixed problem with images that do not load the first
time. Problem was in the fetching dict. del path instead.
author | sirebral |
---|---|
date | Tue, 21 Jul 2009 02:34:21 -0500 |
parents | 28ad6bd3ac71 |
children | 83fb9a73a30f |
comparison
equal
deleted
inserted
replaced
14:0b8b7e3ed78d | 15:cab94a90f9dc |
---|---|
116 self.__queue.put((self.__cache[path], image_type, imageId)) | 116 self.__queue.put((self.__cache[path], image_type, imageId)) |
117 if self.__fetching.has_key(path): | 117 if self.__fetching.has_key(path): |
118 del self.__fetching[path] | 118 del self.__fetching[path] |
119 else: | 119 else: |
120 open_rpg.get_component('log').log("Image refused to load or URI did not reference a valid image: " + path, ORPG_GENERAL, True) | 120 open_rpg.get_component('log').log("Image refused to load or URI did not reference a valid image: " + path, ORPG_GENERAL, True) |
121 self.__fetching[path] = False | 121 del self.__fetching[path] |
122 except IOError: | 122 except IOError: |
123 self.__fetching[path] = False | 123 del self.__fetching[path] |
124 open_rpg.get_component('log').log("Unable to resolve/open the specified URI; image was NOT laoded: " + path, ORPG_GENERAL, True) | 124 open_rpg.get_component('log').log("Unable to resolve/open the specified URI; image was NOT laoded: " + path, ORPG_GENERAL, False) |
125 finally: | 125 finally: |
126 self.__lock.release() | 126 self.__lock.release() |
127 | 127 |
128 def __loadCacheThread(self, path, image_type, imageId): | 128 def __loadCacheThread(self, path, image_type, imageId): |
129 try: | 129 try: |