Exemple #1
0
// ------------------------------------------------------------------------- //
// UsdInherits
// ------------------------------------------------------------------------- //
bool
UsdInherits::Add(const SdfPath &primPath)
{
    SdfChangeBlock block;
    if (SdfPrimSpecHandle spec = _CreatePrimSpecForEditing()) {
        SdfInheritsProxy inhs = spec->GetInheritPathList();
        inhs.Add(primPath);
        return true;
    }
    return false;
}
Exemple #2
0
PXR_NAMESPACE_OPEN_SCOPE

// ------------------------------------------------------------------------- //
// UsdInherits
// ------------------------------------------------------------------------- //
bool
UsdInherits::AppendInherit(const SdfPath &primPath)
{
    SdfChangeBlock block;
    if (SdfPrimSpecHandle spec = _CreatePrimSpecForEditing()) {
        SdfInheritsProxy inhs = spec->GetInheritPathList();
        inhs.Add(primPath);
        return true;
    }
    return false;
}