@@ -131,7 +131,8 @@ namespace usd
131
131
for (uint64_t i = 0 ; i < _link.VisualCount (); ++i)
132
132
{
133
133
const auto visual = *(_link.VisualByIndex (i));
134
- const auto visualPath = std::string (_path + " /" + visual.Name ());
134
+ auto visualPath = std::string (_path + " /" + visual.Name ());
135
+ visualPath = sdf::usd::validPath (visualPath);
135
136
auto errorsLink = ParseSdfVisual (visual, _stage, visualPath);
136
137
if (!errorsLink.empty ())
137
138
{
@@ -147,7 +148,8 @@ namespace usd
147
148
for (uint64_t i = 0 ; i < _link.CollisionCount (); ++i)
148
149
{
149
150
const auto collision = *(_link.CollisionByIndex (i));
150
- const auto collisionPath = std::string (_path + " /" + collision.Name ());
151
+ auto collisionPath = std::string (_path + " /" + collision.Name ());
152
+ collisionPath = sdf::usd::validPath (collisionPath);
151
153
auto errorsCollision = ParseSdfCollision (collision, _stage,
152
154
collisionPath);
153
155
if (!errorsCollision.empty ())
@@ -166,7 +168,8 @@ namespace usd
166
168
for (uint64_t i = 0 ; i < _link.SensorCount (); ++i)
167
169
{
168
170
const auto sensor = *(_link.SensorByIndex (i));
169
- const auto sensorPath = std::string (_path + " /" + sensor.Name ());
171
+ auto sensorPath = std::string (_path + " /" + sensor.Name ());
172
+ sensorPath = sdf::usd::validPath (sensorPath);
170
173
UsdErrors errorsSensor = ParseSdfSensor (sensor, _stage, sensorPath);
171
174
if (!errorsSensor.empty ())
172
175
{
@@ -183,6 +186,7 @@ namespace usd
183
186
{
184
187
const auto light = *(_link.LightByIndex (i));
185
188
auto lightPath = std::string (_path + " /" + light.Name ());
189
+ lightPath = sdf::usd::validPath (lightPath);
186
190
UsdErrors lightErrors = ParseSdfLight (light, _stage, lightPath);
187
191
if (!lightErrors.empty ())
188
192
{
0 commit comments