Skip to content

Commit

Permalink
Remove TfIsFile check in UsdSchemaRegistry
Browse files Browse the repository at this point in the history
This check was unnecessary and interferes with SdfLayer's
own file existence checks. In particular, it would disallow
the use of symlinks to a generatedSchema.usda file.

Fixes #763

(Internal change: 1948614)
  • Loading branch information
sunyab authored and pixar-oss committed Mar 18, 2019
1 parent ef688a0 commit b44124a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pxr/usd/lib/usd/schemaRegistry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ _GetGeneratedSchema(const PlugPluginPtr &plugin)
// Look for generatedSchema in Resources.
const string fname = TfStringCatPaths(plugin->GetResourcePath(),
"generatedSchema.usda");
return TfIsFile(fname) ? SdfLayer::OpenAsAnonymous(fname) : TfNullPtr;
return SdfLayer::OpenAsAnonymous(fname);
}

void
Expand Down

0 comments on commit b44124a

Please sign in to comment.