mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
for consistency, add a setSkinName method to tsstatic
wrapper for obj.skin assignment just like shapebase
This commit is contained in:
parent
67ae3d136b
commit
9aa45b24ba
|
|
@ -1900,3 +1900,17 @@ DefineEngineMethod(TSStatic, getNodeTransform, TransformF, (const char *nodeName
|
|||
object->getNodeTransform(nodeName, MatrixF::Identity, &xf);
|
||||
return xf;
|
||||
}
|
||||
|
||||
DefineEngineMethod(TSStatic, setSkinName, void, (const char* name), ,
|
||||
"@brief Apply a new skin to this shape.\n\n"
|
||||
|
||||
"'Skinning' the shape effectively renames the material targets, allowing "
|
||||
"different materials to be used on different instances of the same model.\n\n"
|
||||
|
||||
"@param name name of the skin to apply\n\n"
|
||||
|
||||
"@see skin\n"
|
||||
"@see getSkinName()\n")
|
||||
{
|
||||
object->setSkinName(name);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue