mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 22:54:34 +00:00
Fixes after feedback from Luis.
* Made use of dStrIsEmpty in more locations (and fixed it :P) * Removed commented-out code * Corrected default params * Fixed some console warning formats * Removed tabs * Corrected setExtent API
This commit is contained in:
parent
04ff04a95f
commit
3ab048c5b0
30 changed files with 130 additions and 110 deletions
|
|
@ -169,7 +169,7 @@ DefineConsoleFunction( loadColladaLights, bool, (const char * filename, const ch
|
|||
// the MissionGroup if not specified.
|
||||
SimGroup* missionGroup = dynamic_cast<SimGroup*>(Sim::findObject("MissionGroup"));
|
||||
SimGroup* group = 0;
|
||||
if (dStrcmp(parentGroup, "") == 0){
|
||||
if (!dStrIsEmpty(parentGroup)){
|
||||
if (!Sim::findObject(parentGroup, group)) {
|
||||
// Create the group if it could not be found
|
||||
group = new SimGroup;
|
||||
|
|
@ -188,7 +188,7 @@ DefineConsoleFunction( loadColladaLights, bool, (const char * filename, const ch
|
|||
|
||||
// Optional object to provide the base transform
|
||||
MatrixF offset(true);
|
||||
if (dStrcmp(baseObject, "") != 0){
|
||||
if (!dStrIsEmpty(baseObject)){
|
||||
SceneObject *obj;
|
||||
if (Sim::findObject(baseObject, obj))
|
||||
offset = obj->getTransform();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue