--===============1097578506== Content-Type: multipart/alternative; boundary=0016363b845c7c66580498e66165 --0016363b845c7c66580498e66165 Content-Type: text/plain; charset=ISO-8859-1 On Thu, Dec 30, 2010 at 3:23 PM, Martin Renold wrote: > On Tue, Dec 28, 2010 at 02:59:36AM +0100, Sven Langkamp wrote: > > > > I tried that but the brush did assert on loading. I have now updated the > > code to MyPaint 0.9, but most the recent brushes don't work correctly. I > > only changed the isfinite and passed a default tilt, the rest is same as > > before. > > Brush settings are mixed up. This will help: > > --- a/krita/plugins/paintops/mypaint/mypaint_brush_resource.cpp > +++ b/krita/plugins/paintops/mypaint/mypaint_brush_resource.cpp > @@ -198,6 +198,11 @@ public: > dict[def->cname] = def; > def->index = i++; > } > + //assert(i == BRUSH_SETTINGS_COUNT); > + if (i != BRUSH_SETTINGS_COUNT) { > + printf("Doh, you forgot a brush setting!\n"); > + abort(); > + } > } > > }; > Thanks, that helped a lot. --0016363b845c7c66580498e66165 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Thu, Dec 30, 2010 at 3:23 PM, Martin Renold <= span dir=3D"ltr"><martinxyz@gmx.ch> wrote:
On Tue, Dec 28, 2010 at 02:59:36AM +0100, Sven Langkamp w= rote:
>
> I tried that but the brush did assert on loading. I have now updated t= he
> code to MyPaint 0.9, but most the recent brushes don't work correc= tly. I
> only changed the isfinite and passed a default tilt, the rest is same = as
> before.

Brush settings are mixed up. This will help:

--- a/krita/plugins/paintops/mypaint/mypaint_brush_resource.cpp
+++ b/krita/plugins/paintops/mypaint/mypaint_brush_resource.cpp
@@ -198,6 +198,11 @@ public:
=A0 =A0 =A0 =A0 =A0 =A0 dict[def->cname] =3D def;
=A0 =A0 =A0 =A0 =A0 =A0 def->index =3D i++;
=A0 =A0 =A0 =A0 }
+ =A0 =A0 =A0 =A0//assert(i =3D=3D BRUSH_SETTINGS_COUNT);
+ =A0 =A0 =A0 =A0if (i !=3D BRUSH_SETTINGS_COUNT) {
+ =A0 =A0 =A0 =A0 =A0printf("Doh, you forgot a brush setting!\n")= ;
+ =A0 =A0 =A0 =A0 =A0abort();
+ =A0 =A0 =A0 =A0}
=A0 =A0 }

=A0};

Thanks, that helped a lot.
--0016363b845c7c66580498e66165-- --===============1097578506== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kimageshop mailing list kimageshop@kde.org https://mail.kde.org/mailman/listinfo/kimageshop --===============1097578506==--