Skip to content

Commit

Permalink
Guard against unnecessary array detaches in attribute creation
Browse files Browse the repository at this point in the history
  • Loading branch information
nvmkuruc committed Nov 27, 2023
1 parent 0e11364 commit b4abb87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pxr/usd/usd/schemaRegistry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1330,7 +1330,7 @@ BuildPrimDefinition(_SchemaDefInitHelper *defInitHelper)

// Get the list of names of any override properties this schema may have as
// we want to skip these at first when initializing the prim definition.
VtTokenArray overridePropertyNames = _GetOverridePropertyNames(
const VtTokenArray overridePropertyNames = _GetOverridePropertyNames(
schematicsLayer, schematicsPrimPath);

// Multiple apply schemas are actually templates for creating an instance of
Expand Down Expand Up @@ -1535,7 +1535,7 @@ _PopulateConcretePrimDefinitions() const
const SdfPath schematicsPrimPath =
SdfPath::AbsoluteRootPath().AppendChild(schemaInfo->identifier);

VtTokenArray overridePropertyNames = _GetOverridePropertyNames(
const VtTokenArray overridePropertyNames = _GetOverridePropertyNames(
schematicsLayer, schematicsPrimPath);

// Create and initialize a new prim definition for the concrete schema.
Expand Down

0 comments on commit b4abb87

Please sign in to comment.