for consistency, add a setSkinName method to tsstatic

wrapper for obj.skin assignment just like shapebase
This commit is contained in:
AzaezelX 2025-01-09 08:09:59 -06:00
parent 67ae3d136b
commit 9aa45b24ba

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