mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-02 17:46:48 +01:00
refactor(model): the new model format is EU07M (.eu07m), not E4D
E4D read as the next version of E3D, which the format isn't meant to be tied to; EU07M goes with the world format .eu07.
The format isn't released, so nothing reads the old name.
- The extension .eu07m, the magic EU7M (the four bytes of the header), model/eu07m/ with eu07m_*.{h,cpp},
namespace eu07m, docs/eu07m-format.md, tests/unit/test_eu07m.cpp.
- The command line -eu07m convert|dump|validate|diff, TModel3d::LoadFromEU07M, and the key modelformat eu07m|legacy
of eu07.ini (Global.modelformat_eu07m).
- Nothing else changes: the sections, the records and the components are the same, so a converted file needs only its
magic and its extension changed.
Unit tests 1189/1189.
This commit is contained in:
+3
-3
@@ -166,9 +166,9 @@ std::string
|
||||
TModelsManager::find_on_disk( std::string const &Name ) {
|
||||
|
||||
std::vector<std::string> extensions { { ".e3d" }, { ".t3d" } };
|
||||
if( Global.modelformat_e4d ) {
|
||||
// a model may come as an .e4d alone
|
||||
extensions.emplace_back( ".e4d" );
|
||||
if( Global.modelformat_eu07m ) {
|
||||
// a model may come as an .eu07m alone
|
||||
extensions.emplace_back( ".eu07m" );
|
||||
}
|
||||
for( auto const &extension : extensions ) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user