mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-01 14:07:06 +01:00
Merge branch 'feat/eu07m-instancing' into feat/eu07m-skinning
This commit is contained in:
+3
-3
@@ -1817,7 +1817,7 @@ glm::vec3 TSubModel::offset(float const Geometrytestoffsetthreshold) const
|
||||
|
||||
namespace
|
||||
{
|
||||
// modelformat eu07m: an .eu07m older than the .e3d / .t3d it was made from isn't used, the model was changed after it was
|
||||
// modelformat r3a: an .r3a older than the .e3d / .t3d it was made from isn't used, the model was changed after it was
|
||||
// converted (the hash of the source in its header would need the source read whole to be compared)
|
||||
bool eu07m_up_to_date(std::string const &Eu07m, std::initializer_list<std::string> const Sources)
|
||||
{
|
||||
@@ -1939,10 +1939,10 @@ bool TModel3d::LoadFromFile(std::string const &FileName, bool dynamic)
|
||||
Init();
|
||||
assign_lod_ranges(Root, name);
|
||||
}
|
||||
else if (auto const eu07mfile{Global.modelformat_eu07m ? FileCased(name + ".eu07m") : std::string{}};
|
||||
else if (auto const eu07mfile{Global.modelformat_eu07m ? FileCased(name + ".r3a") : std::string{}};
|
||||
(false == eu07mfile.empty()) && eu07m_up_to_date(eu07mfile, {binaryfile, textfile}) && LoadFromEU07M(eu07mfile, dynamic))
|
||||
{
|
||||
// modelformat eu07m: the .eu07m made from the model takes its place; one which doesn't load leaves the .e3d / .t3d to go on
|
||||
// modelformat r3a: the .r3a made from the model takes its place; one which doesn't load leaves the .e3d / .t3d to go on
|
||||
asBinary = "";
|
||||
Init();
|
||||
assign_lod_ranges(Root, name);
|
||||
|
||||
Reference in New Issue
Block a user