Prechádzať zdrojové kódy

Merge pull request #1354 from Azaezel/alpha41/SkinTheCat

for consistency, add a setSkinName method to tsstatic
Brian Roberts 8 mesiacov pred
rodič
commit
a1144dad65
1 zmenil súbory, kde vykonal 14 pridanie a 0 odobranie
  1. 14 0
      Engine/source/T3D/tsStatic.cpp

+ 14 - 0
Engine/source/T3D/tsStatic.cpp

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