Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions Sofa/framework/Simulation/Core/src/sofa/simulation/Node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -508,10 +508,21 @@ sofa::core::objectmodel::Base* Node::findLinkDestClass(const core::objectmodel::
}
else
{
std::size_t p2pos = pathStr.find('/',ppos);
if (p2pos == std::string::npos) p2pos = psize;
std::string nameStr = pathStr.substr(ppos,p2pos-ppos);
ppos = p2pos+1;
std::string nameStr;
if (pathStr[ppos] == '\'')
{
std::size_t p2pos = pathStr.find('\'', ppos + 1);
if (p2pos == std::string::npos) p2pos = psize;
nameStr = pathStr.substr(ppos, p2pos - ppos+1);
ppos = p2pos + 2;
}
else
{
std::size_t p2pos = pathStr.find('/',ppos);
if (p2pos == std::string::npos) p2pos = psize;
nameStr = pathStr.substr(ppos,p2pos-ppos);
ppos = p2pos+1;
}
if (master)
{
if(DEBUG_LINK)
Expand Down
Loading