<div class="gmail_quote">On Thu, Dec 30, 2010 at 3:23 PM, Martin Renold <span dir="ltr"><<a href="mailto:martinxyz@gmx.ch">martinxyz@gmx.ch</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;">
<div class="im">On Tue, Dec 28, 2010 at 02:59:36AM +0100, Sven Langkamp wrote:<br>
><br>
> I tried that but the brush did assert on loading. I have now updated the<br>
> code to MyPaint 0.9, but most the recent brushes don't work correctly. I<br>
> only changed the isfinite and passed a default tilt, the rest is same as<br>
> before.<br>
<br>
</div>Brush settings are mixed up. This will help:<br>
<br>
--- a/krita/plugins/paintops/mypaint/mypaint_brush_resource.cpp<br>
+++ b/krita/plugins/paintops/mypaint/mypaint_brush_resource.cpp<br>
@@ -198,6 +198,11 @@ public:<br>
dict[def->cname] = def;<br>
def->index = i++;<br>
}<br>
+ //assert(i == BRUSH_SETTINGS_COUNT);<br>
+ if (i != BRUSH_SETTINGS_COUNT) {<br>
+ printf("Doh, you forgot a brush setting!\n");<br>
+ abort();<br>
+ }<br>
}<br>
<br>
};<br></blockquote><div><br>Thanks, that helped a lot. <br></div></div>