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