mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 23:24:41 +00:00
* BugFix: Clear a lot of warnings and correct a few actual programming errors along the way.
This commit is contained in:
parent
ef514d0e6b
commit
1b6b803a20
61 changed files with 120 additions and 118 deletions
|
|
@ -74,7 +74,7 @@ TSShape::TSShape()
|
|||
mRadius = 0;
|
||||
mFlags = 0;
|
||||
tubeRadius = 0;
|
||||
data = NULL;
|
||||
data = 0;
|
||||
materialList = NULL;
|
||||
mReadVersion = -1; // -1 means constructed from scratch (e.g., in exporter or no read yet)
|
||||
mSequencesConstructed = false;
|
||||
|
|
@ -225,11 +225,7 @@ const String& TSShape::getTargetName( S32 mapToNameIndex ) const
|
|||
|
||||
S32 TSShape::getTargetCount() const
|
||||
{
|
||||
if(!this)
|
||||
return -1;
|
||||
|
||||
return materialList->getMaterialNameList().size();
|
||||
|
||||
}
|
||||
|
||||
S32 TSShape::findNode(S32 nameIndex) const
|
||||
|
|
|
|||
|
|
@ -357,7 +357,7 @@ void TSShapeConstructor::initPersistFields()
|
|||
endGroup("Collada");
|
||||
|
||||
addGroup("Sequences");
|
||||
addProtectedField("sequence", TypeStringFilename, NULL, &addSequenceFromField, &emptyStringProtectedGetFn,
|
||||
addProtectedField("sequence", TypeStringFilename, 0, &addSequenceFromField, &emptyStringProtectedGetFn,
|
||||
"Legacy method of adding sequences to a DTS or DAE shape after loading.\n\n"
|
||||
"@tsexample\n"
|
||||
"singleton TSShapeConstructor(MyShapeDae)\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue