Paintop presets referencing brushes in files are not portable
sven.langkamp at gmail.com
Sat Sep 11 23:27:55 CEST 2010
On Sat, Sep 11, 2010 at 6:10 PM, LukasT.dev at gmail.com
<lukast.dev at gmail.com>wrote:
> > > Currently we address the gbr brush in preset by full path. We might use
> > > just a name.
> > Well the problem is that two different brushes could have the same name.
> I have idea for it. Krita is looking for the brushes in some specified
> (user brushes, installed brushes, create package, maybe some other I
> noticed yet). Let's just save the name of the brush like
> <brush filename="coolBrush.gbr" md5="58afe7e809d281fb421e728363bd80cc">
> Where md5 is the finger print of the gbr/abr/anyOtherFormat brush file
> Because it might happen that you name some brush with the same name in user
> brush dir and in installed brush dir. We would look for the brush where md5
> and name match.
> Sven filled the bug report, that's why I'm opening this topic again :)
I think the idea is good to use md5 sums. It might be a problem if there are
some big brushes, so we should check how much time is needed to generate
these sums. In case of ABR brushes can be severeral brushes in the same
file, so you can't take the md5 from the file there.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the kimageshop