-
Notifications
You must be signed in to change notification settings - Fork 18
Brushes: Change surfacemap inputs to gridmap #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Brushes: Change surfacemap inputs to gridmap #7
Conversation
brushsettings.json in libmypaint does not have "surfacemap_x" or "surfacemap_y" brush inputs, which causes a warning when trying to load /Dieterle brushes in libmypaint. "surfacemap" was an older name for these inputs, which were ultimately renamed to "gridmap" in libmypaint. This patch renames them in mypaint-brushes as well, so that they can load without warnings.
|
@briend could you look into this since this? |
|
mypaint/libmypaint@dbc0f5a Looks like the merged branch was named "surfacemap", which is also the only reference to the id in libmypaint's commit history. The brushes were added in a single commit in 2019, but belonged to this repo prior to that. Brien's repo still uses the surfacemap id. The brush files use Ultimately, the easiest thing to do would be to compare the brushes' behaviour in MyPaint with, and without the renamed IDs |
|
@AesaraB : Thanks for digging up those links! These two comments are interesting: mypaint/libmypaint#72 (comment):
mypaint/libmypaint#72 (comment):
There may be some change in the brush behavior. From the warning, it looks like it stops reading when it encounters an "invalid" input (otherwise we'd also get warnings about surfacemap_y). So that plus "viewzoom" settings aren't being applied to the brushes, I don't think. |
|
An interesting dilemma, do we stick with the behaviours users are familiar with, or switch to "correct", yet "different" behaviours? We could merge the change, and get user feedback during the next alpha |
Alex's patch from mypaint/mypaint-brushes#7 Since mypaint project is long time gone, we need to patch ourserves.
Hello! GIMP recently added support for mypaint-brushes-2. When we did so, we started seeing the following warnings on start-up.
Warning: Unknown input_id: -1 for input: surfacemap_xSee https://gitlab.gnome.org/GNOME/gimp/-/issues/14461
This warning comes from several Dieterle brushes which have
surfacemap_xandsurfacemap_ybrush inputs. Looking at libmypaint's brushsettings.json, there is no inputs with that name (causing the warning).However, there are
gridmap_xandgridmap_yinputs, which have the same value range and were implemented from a branch called /surfacemap. It is highly likely thatsurfacemapwas an older name forgridmapthat wasn't corrected when added to mypaint-brushes, as there are several related properties with that name likegridmap_scale_x.This patch renames the 12 instances of "surfacemap_" to "gridmap_" to remove the warning and allow subsequent properties like "viewzoom" to load as well.