mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 09:04:38 +00:00
Makes the tab/spaces consistent for the entire console method function rather than mix-n-matching the formatting.
This commit is contained in:
parent
27bb7a712a
commit
8d195f9236
1 changed files with 8 additions and 8 deletions
|
|
@ -4881,18 +4881,18 @@ DefineEngineMethod( ShapeBase, getTargetCount, S32, (),,
|
||||||
|
|
||||||
"@see getTargetName()\n")
|
"@see getTargetName()\n")
|
||||||
{
|
{
|
||||||
ShapeBase *obj = dynamic_cast< ShapeBase* > ( object );
|
ShapeBase *obj = dynamic_cast< ShapeBase* > ( object );
|
||||||
if(obj)
|
if(obj)
|
||||||
{
|
{
|
||||||
// Try to use the client object (so we get the reskinned targets in the Material Editor)
|
// Try to use the client object (so we get the reskinned targets in the Material Editor)
|
||||||
if ((ShapeBase*)obj->getClientObject())
|
if ((ShapeBase*)obj->getClientObject())
|
||||||
obj = (ShapeBase*)obj->getClientObject();
|
obj = (ShapeBase*)obj->getClientObject();
|
||||||
|
|
||||||
if (obj->getShapeInstance() != NULL)
|
if (obj->getShapeInstance() != NULL)
|
||||||
return obj->getShapeInstance()->getTargetCount();
|
return obj->getShapeInstance()->getTargetCount();
|
||||||
}
|
}
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
DefineEngineMethod( ShapeBase, changeMaterial, void, ( const char* mapTo, Material* oldMat, Material* newMat ),,
|
DefineEngineMethod( ShapeBase, changeMaterial, void, ( const char* mapTo, Material* oldMat, Material* newMat ),,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue