On Thu, Dec 30, 2010 at 3:23 PM, Martin Renold <martinxyz@gmx.ch> 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.