mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Improves logical checks for the default value so it's more sane and stable
Allows creation of polyhedrons via constructor with a origin and vector format, allowing to have default polyhedron values on triggers and physical zones
This commit is contained in:
parent
68ae0ca96d
commit
a0f8b29da7
5 changed files with 63 additions and 2 deletions
|
|
@ -338,7 +338,7 @@ void SimObject::writeFields(Stream &stream, U32 tabStop)
|
|||
|
||||
//If the field hasn't been changed from the default value, then don't bother writing it out
|
||||
const char* defaultValueCheck = defaultObject->getDataField(f->pFieldname, array);
|
||||
if (defaultValueCheck != '\0' && dStricmp(defaultValueCheck, valCopy) == 0)
|
||||
if (defaultValueCheck && defaultValueCheck[0] != '\0' && dStricmp(defaultValueCheck, valCopy) == 0)
|
||||
continue;
|
||||
|
||||
val = valCopy;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue