Bug 315079
Added option to select "Solid Color" or "Pattern" to experimental brush.
Before:
After:
After with mirror:
After with solid color:
rempt | |
dkazakov | |
albertoefg |
Krita |
Bug 315079
Added option to select "Solid Color" or "Pattern" to experimental brush.
Before:
After:
After with mirror:
After with solid color:
Compiled and tested.
Lint Skipped |
Unit Tests Skipped |
Hi, @albertoefg!
The patch works almost fine, but there are a few little things that should be fixed before pushing it:
Bug in point one is a direct sequence of not using a enum actually :)
plugins/paintops/experiment/kis_experimentop_option.cpp | ||
---|---|---|
119 | That is actually the reason of the bug | |
plugins/paintops/experiment/kis_experimentop_option.h | ||
32 | See a comment about two booleans. Basically, we need a field that might have two options: "patter" or "color" | |
73 | That is really a bad idea to use two booleans to state that has only two options :) What does it mean if both booleans are false? And what does it mean if both booleans are true? Such state is undefined in this code. Please change it to some enum. Something like: enum FillType { FillSolidColor, FillPattern }; It will avoid the problem of undefined state | |
85 | Don't forget about the default values! |
@albertoefg - Are you still working on this. If not, would you be ok if I took this patch over and finished it off. I think the patch is still pretty much yours, so you can still get the credit for it.
I talked with @albertoefg about this ticket. He is ok with me finishing this guy off.