------------------------------------------------------------------------------------------------ Creates a dummy material and returns it.
| 251 | // ------------------------------------------------------------------------------------------------ |
| 252 | // Creates a dummy material and returns it. |
| 253 | aiMaterial *SkeletonMeshBuilder::CreateMaterial() { |
| 254 | aiMaterial *matHelper = new aiMaterial; |
| 255 | |
| 256 | // Name |
| 257 | aiString matName(std::string("SkeletonMaterial")); |
| 258 | matHelper->AddProperty(&matName, AI_MATKEY_NAME); |
| 259 | |
| 260 | // Prevent backface culling |
| 261 | const int no_cull = 1; |
| 262 | matHelper->AddProperty(&no_cull, 1, AI_MATKEY_TWOSIDED); |
| 263 | |
| 264 | return matHelper; |
| 265 | } |
nothing calls this directly
no test coverage detected