mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Some code cleanup, tweak and optimizations for assets, entities and components.
This commit is contained in:
parent
cfbdf63cd7
commit
abe4370c8a
15 changed files with 58 additions and 40 deletions
|
|
@ -67,6 +67,13 @@ Component::Component()
|
|||
mOriginatingAssetId = StringTable->EmptyString();
|
||||
|
||||
mIsServerObject = true;
|
||||
|
||||
componentIdx = 0;
|
||||
|
||||
mHidden = false;
|
||||
mEnabled = true;
|
||||
|
||||
mDirtyMaskBits = 0;
|
||||
}
|
||||
|
||||
Component::~Component()
|
||||
|
|
@ -535,7 +542,7 @@ const char * Component::getDescriptionText(const char *desc)
|
|||
if (desc == NULL)
|
||||
return NULL;
|
||||
|
||||
char *newDesc;
|
||||
char *newDesc = "";
|
||||
|
||||
// [tom, 1/12/2007] If it isn't a file, just do it the easy way
|
||||
if (!Platform::isFile(desc))
|
||||
|
|
@ -568,7 +575,7 @@ const char * Component::getDescriptionText(const char *desc)
|
|||
}
|
||||
|
||||
str.close();
|
||||
delete stream;
|
||||
//delete stream;
|
||||
|
||||
return newDesc;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue