Skip to content

Commit

Permalink
Merge pull request #1354 from Azaezel/alpha41/SkinTheCat
Browse files Browse the repository at this point in the history
for consistency, add a setSkinName method to tsstatic
  • Loading branch information
Azaezel authored Jan 9, 2025
2 parents e503bcc + 9aa45b2 commit a1144da
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Engine/source/T3D/tsStatic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit a1144da

Please sign in to comment.