Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upAnyImageImporter: Delegate .basis files #370
Conversation
This comment has been minimized.
This comment has been minimized.
Why manager.setPreferredPlugins("BasisImporter", {"BasisImporterEtc2"}); or by modifying global configuration for the manager.metadata("BasisImporter")->configuration().setValue("format", "Etc2"); |
This comment has been minimized.
This comment has been minimized.
The issue is that |
This comment has been minimized.
This comment has been minimized.
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 |
This comment has been minimized.
This comment has been minimized.
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 |
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?" |
This comment has been minimized.
This comment has been minimized.
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 |
This comment has been minimized.
This comment has been minimized.
codecov-io
commented
Aug 30, 2019
•
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.
|
Last two bits, otherwise I'm happy and this is ready to land :) |
src/MagnumPlugins/AnyImageImporter/Test/AnyImageImporterTest.cpp
Outdated
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Ugh why is it that I always discover bugs after things get pushed to master -- the file signature is just Fix pushed as 64e365e. |
Squareys commentedAug 27, 2019
•
edited
Hello @mosra !
This part of mosra/magnum-plugins#62 is hereby up for discussion.
TODOs