MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/MaterialX / parentNamePath

Function parentNamePath

source/MaterialXCore/Util.cpp:171–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171string parentNamePath(const string& namePath)
172{
173 StringVec nameVec = splitNamePath(namePath);
174 if (!nameVec.empty())
175 {
176 nameVec.pop_back();
177 return createNamePath(nameVec);
178 }
179 return EMPTY_STRING;
180}
181
182MATERIALX_NAMESPACE_END

Callers

nothing calls this directly

Calls 3

splitNamePathFunction · 0.85
createNamePathFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected