<div class="gmail_quote">On Thu, Dec 30, 2010 at 3:23 PM, Martin Renold <span dir="ltr">&lt;<a href="mailto:martinxyz@gmx.ch">martinxyz@gmx.ch</a>&gt;</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>
&gt;<br>
&gt; I tried that but the brush did assert on loading. I have now updated the<br>
&gt; code to MyPaint 0.9, but most the recent brushes don&#39;t work correctly. I<br>
&gt; only changed the isfinite and passed a default tilt, the rest is same as<br>
&gt; 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-&gt;cname] = def;<br>
             def-&gt;index = i++;<br>
         }<br>
+        //assert(i == BRUSH_SETTINGS_COUNT);<br>
+        if (i != BRUSH_SETTINGS_COUNT) {<br>
+          printf(&quot;Doh, you forgot a brush setting!\n&quot;);<br>
+          abort();<br>
+        }<br>
     }<br>
<br>
 };<br></blockquote><div><br>Thanks, that helped a lot. <br></div></div>