Merge pull request #1354 from Azaezel/alpha41/SkinTheCat

for consistency, add a setSkinName method to tsstatic
This commit is contained in:
Brian Roberts 2025-01-09 08:10:40 -06:00 committed by GitHub
commit a1144dad65
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);
}