Summary: | Sketch brush strokes are tinted blue at the beginning of each stroke, regardless of color used, paint connection line toggles it on and off. | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | Sascha S. <M8R-nvuxt11> |
Component: | Brush engines | Assignee: | Krita Bugs <krita-bugs-null> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | halla |
Priority: | NOR | ||
Version: | git master (please specify the git hash!) | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
URL: | http://s14.postimg.org/gim3lmm8v/bluesplotches.png | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Sascha S.
2013-03-29 17:45:10 UTC
(In reply to comment #0) I just found out that, in Brush Settings->Brush Size, un-checking the ``paint connection line'' option removes the blue splotches and checking it produces it again. Also, I would gauge the age of this bug at about 3 days or so. Checking the git log does not provide any clues to me. There were some color related commits but no explicit mentioning of the sketch brush or its options. Hi, Thanks for your report. I can reproduce the issue, though it takes a bit of time, it's most apparent with small strokes from top-right to bottom-left. Hi, No problem. I've poked around a bit and it might be located in the `KisPainter::drawLine' method. `KisPainter::DrawThickLine' in the `KisSketchPaintOp::drawConnection' method did not seem to get called, even with a lineWidth of 1.0. (I did not explicitly debug, though, merely used a 1.0 sized brush and added some printfs to see what was called.) Hope that helps. Cheers, and thank you for working on this amazing piece of software! Ah... That's itneresting, since that code got changed recently by Dmitry. `KisPainter::setPaintColor(const KoColor& color)' Changing `d->paintColor = color;' to `d->paintColor = KoColor();' produces the blue color for all brushes. `KisPainter::drawLine' grabs that color at line 1379 `KoColor mycolor = d->paintColor' so I'm guessing that there is some initialization going wrong. I'm not experienced enough with the toolchain/whatever methods are used to trace these things. I'm rather new to GNU/Linux in general. You're still doing a good job of hunting things down :-) Thank you :-) It's not super hard, since I'm more or less sufficiently versed in C++, but it would be a lot faster/productive if I sat down and get friendly with gdb and co, which I've not yet done, but will. Krita didn't take long to make me love it and the recent changes in the Vector department have me psyched even more, and while I'm not ready, yet,I'm at least motivating myself with the goal of perhaps contributing something back to the project. But I digress and don't wanna abuse the bug tracker like this. If I do make another post then it will be a working patch for this or bust :P Cheers! That would be awesome! On Sat, 30 Mar 2013, M8R-nvuxt11@mailinator.com wrote: > https://bugs.kde.org/show_bug.cgi?id=317556 > > --- Comment #7 from M8R-nvuxt11@mailinator.com --- > Thank you :-) > It's not super hard, since I'm more or less sufficiently versed in C++, but it > would be a lot faster/productive if I sat down and get friendly with gdb and > co, which I've not yet done, but will. > Krita didn't take long to make me love it and the recent changes in the Vector > department have me psyched even more, and while I'm not ready, yet,I'm at least > motivating myself with the goal of perhaps contributing something back to the > project. > > But I digress and don't wanna abuse the bug tracker like this. If I do make > another post then it will be a working patch for this or bust :P > > Cheers! > > -- > You are receiving this mail because: > You are on the CC list for the bug. > You are watching the assignee of the bug. > Well, I think I'm going for a bust here. The farthest I've come was realizing that the sketch brush is generating a lot of `KisPainter' instances when connection lines are drawn. With many calls to `KisPainter::setPaintColor', before settling on one stable memory location of a `KisPainter' for `KisSketchPaintOP::m_painter'. I fail to trace the creation of these instances and figure out why on the first (few) seem to be badly initialized. So don't wait for me here =P. Anyway, thanks again for your time. Cheers! *** This bug has been marked as a duplicate of bug 316858 *** |