Skip to content

Commit 74d4979

Browse files
committed
IECoreMaya : Simplified LiveScene::path() with dagPathToPath().
1 parent 4b5fbef commit 74d4979

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

src/IECoreMaya/LiveScene.cpp

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -206,20 +206,7 @@ void LiveScene::path( Path &p ) const
206206
throw Exception( "IECoreMaya::LiveScene::path: Dag path no longer exists!" );
207207
}
208208

209-
std::string pathStr( m_dagPath.fullPathName().asChar() );
210-
boost::tokenizer<boost::char_separator<char> > t( pathStr, boost::char_separator<char>( "|" ) );
211-
212-
p.clear();
213-
214-
for (
215-
boost::tokenizer<boost::char_separator<char> >::iterator it = t.begin();
216-
it != t.end();
217-
++it
218-
)
219-
{
220-
p.push_back( Name( *it ) );
221-
}
222-
209+
dagPathToPath( m_dagPath, p );
223210
}
224211

225212
Imath::Box3d LiveScene::readBound( double time ) const

0 commit comments

Comments
 (0)