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

Method setCollection

source/MaterialXCore/Property.cpp:19–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17//
18
19void PropertyAssign::setCollection(ConstCollectionPtr collection)
20{
21 if (collection)
22 {
23 setCollectionString(collection->getName());
24 }
25 else
26 {
27 removeAttribute(COLLECTION_ATTRIBUTE);
28 }
29}
30
31CollectionPtr PropertyAssign::getCollection() const
32{

Callers

nothing calls this directly

Calls 2

setCollectionStringFunction · 0.70
getNameMethod · 0.45

Tested by

no test coverage detected