AnyImageImporter: Delegate .basis files - #370
Conversation
|
Why manager.setPreferredPlugins("BasisImporter", {"BasisImporterEtc2"});or by modifying global configuration for the manager.metadata("BasisImporter")->configuration().setValue("format", "Etc2"); |
|
The issue is that |
Yes. But even in that case, both defaults are equally arbitrary and probably wrong, which leads me to think...
What about ... not having a default at all? Like, the plugin failing to load a file when you forget to give it a default? That seems like the best way to avoid errors. Things that deal with AnyImageImporter need to handle loading errors anyway so this wouldn't introduce anything unexpected, and if the code wants to deal with basis files, it needs to set those defaults properly in advance, otherwise |
|
That is actually an awesome idea, as it will nudge people to read the docs for how to configure and make a probably way more suited decision than "use default Etc2". Will make that change to BasisImporter |
656a429 to
03ad02b
Compare
mosra
left a comment
There was a problem hiding this comment.
Maybe I'll merge the converter part later, don't want people to complain that "it wants a BasisImageConverter, but I can't find it anywhere! where it is?" 😆
I doubt that anyone will stumble over this in the next couple of days... I'm planning to get mosra/magnum-plugins#65 merge-ready by Sunday at the latest 😅 Depends on your schedule, though :P |
03ad02b to
ef24c45
Compare
Codecov Report
@@ Coverage Diff @@
## master #370 +/- ##
==========================================
- Coverage 71.99% 71.98% -0.01%
==========================================
Files 348 348
Lines 18180 18186 +6
==========================================
+ Hits 13088 13092 +4
- Misses 5092 5094 +2
Continue to review full report at Codecov.
|
mosra
left a comment
There was a problem hiding this comment.
Last two bits, otherwise I'm happy and this is ready to land :)
Signed-off-by: Squareys <squareys@googlemail.com>
Signed-off-by: Squareys <squareys@googlemail.com>
ef24c45 to
d5b5ac1
Compare
|
Ugh why is it that I always discover bugs after things get pushed to master -- the file signature is just Fix pushed as 64e365e. |
Hello @mosra !
This part of mosra/magnum-plugins#62 is hereby up for discussion.
TODOs