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

Method getDefaultGeomProp

source/MaterialXCore/Interface.cpp:287–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

285}
286
287GeomPropDefPtr Input::getDefaultGeomProp() const
288{
289 const string& defaultGeomProp = getAttribute(DEFAULT_GEOM_PROP_ATTRIBUTE);
290 if (!defaultGeomProp.empty())
291 {
292 ConstDocumentPtr doc = getDocument();
293 return doc->getChildOfType<GeomPropDef>(defaultGeomProp);
294 }
295 return nullptr;
296}
297
298bool Input::validate(string* message) const
299{

Callers 4

Geom.cppFile · 0.80
addInputSocketsMethod · 0.80
createConnectedNodesMethod · 0.80
createNodeMethod · 0.80

Calls 3

getAttributeFunction · 0.85
getDocumentFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected