mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Update taml_ScriptBinding.h
even simpler
This commit is contained in:
parent
efe8c184d4
commit
48680700ab
|
|
@ -252,20 +252,10 @@ DefineEngineFunction(TamlWrite, bool, (SimObject* simObject, const char* filenam
|
|||
taml.setAutoFormat(false);
|
||||
}
|
||||
|
||||
// should only be checking if compression if compressed is true.
|
||||
if (compressed)
|
||||
if (taml.getFormatMode() == Taml::BinaryFormat)
|
||||
{
|
||||
// Yes, so is the format mode binary?
|
||||
if (taml.getFormatMode() == Taml::BinaryFormat)
|
||||
{
|
||||
// Yes, so set binary compression.
|
||||
taml.setBinaryCompression(compressed);
|
||||
}
|
||||
else
|
||||
{
|
||||
// No, so warn.
|
||||
Con::warnf("TamlWrite() - Setting binary compression is only valid for BINARY format.");
|
||||
}
|
||||
// Yes, so set binary compression.
|
||||
taml.setBinaryCompression(compressed);
|
||||
}
|
||||
|
||||
// Write.
|
||||
|
|
|
|||
Loading…
Reference in a new issue