OSDN Git Service

fix loading strokemap brushes w/ unknown parents
authorAndrew Chadwick <andrewc-git@piffle.org>
Wed, 21 Sep 2011 00:21:48 +0000 (01:21 +0100)
committerAndrew Chadwick <andrewc-git@piffle.org>
Wed, 21 Sep 2011 00:57:01 +0000 (01:57 +0100)
commit956eb911a6658953e90944bb3d3c039135084842
treed3c999a1268f6b21a29dc54d07094c0765d5dfa8
parent76009e1d224f196f31f2050c8b48dd34d2871ad3
fix loading strokemap brushes w/ unknown parents

Fix for a pair of related exceptions raised when trying to load toolbar
previews for brushes whose parent is no longer on disk.

This can happen when loading old files or files from other people whose
strokemaps contain brush settings whose stored parent name is no longer
in the user's collection.
gui/brushmanager.py
gui/toolbar.py
lib/brush.py