| 237 | } |
| 238 | |
| 239 | IECore::InternedString IECoreUSD::AttributeAlgo::cortexAttributeName( const pxr::UsdAttribute &attribute ) |
| 240 | { |
| 241 | if( pxr::UsdGeomPrimvar primvar = pxr::UsdGeomPrimvar( attribute ) ) |
| 242 | { |
| 243 | if( isCortexAttribute( primvar ) ) |
| 244 | { |
| 245 | return AttributeAlgo::nameFromUSD( { primvar.GetPrimvarName(), true } ); |
| 246 | } |
| 247 | } |
| 248 | else |
| 249 | { |
| 250 | const std::string &n = attribute.GetName().GetString(); |
| 251 | if ( n.find( ":" ) != std::string::npos && attribute.IsCustom() ) |
| 252 | { |
| 253 | return AttributeAlgo::nameFromUSD( { attribute.GetName(), false } ); |
| 254 | } |
| 255 | } |
| 256 | return IECore::InternedString(); |
| 257 | } |
| 258 |
nothing calls this directly
no test coverage detected