<div class="gmail_quote">On Sat, Sep 11, 2010 at 6:10 PM, <a href="mailto:LukasT.dev@gmail.com">LukasT.dev@gmail.com</a> <span dir="ltr"><<a href="mailto:lukast.dev@gmail.com">lukast.dev@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">> > Currently we address the gbr brush in preset by full path. We might use<br>
> > just a name.<br>
><br>
> Well the problem is that two different brushes could have the same name.<br>
<br>
I have idea for it. Krita is looking for the brushes in some specified paths<br>
(user brushes, installed brushes, create package, maybe some other I haven't<br>
noticed yet). Let's just save the name of the brush like<br>
<br>
<brush filename="coolBrush.gbr" md5="58afe7e809d281fb421e728363bd80cc"><br>
<br>
Where md5 is the finger print of the gbr/abr/anyOtherFormat brush file content.<br>
Because it might happen that you name some brush with the same name in user<br>
brush dir and in installed brush dir. We would look for the brush where md5<br>
and name match.<br>
<br>
Sven filled the bug report, that's why I'm opening this topic again :)<br>
<a href="https://bugs.kde.org/show_bug.cgi?id=250675" target="_blank">https://bugs.kde.org/show_bug.cgi?id=250675</a><br></blockquote><div><br>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.<br>
</div></div>