Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/node_ui_storage.cc
| Show First 20 Lines • Show All 157 Lines • ▼ Show 20 Lines | |||||
| void BKE_nodetree_attribute_hint_add(bNodeTree &ntree, | void BKE_nodetree_attribute_hint_add(bNodeTree &ntree, | ||||
| const NodeTreeEvaluationContext &context, | const NodeTreeEvaluationContext &context, | ||||
| const bNode &node, | const bNode &node, | ||||
| const StringRef attribute_name, | const StringRef attribute_name, | ||||
| const AttributeDomain domain, | const AttributeDomain domain, | ||||
| const CustomDataType data_type) | const CustomDataType data_type) | ||||
| { | { | ||||
| NodeUIStorage &node_ui_storage = node_ui_storage_ensure(ntree, context, node); | NodeUIStorage &node_ui_storage = node_ui_storage_ensure(ntree, context, node); | ||||
| node_ui_storage.attribute_hints.add_as(attribute_name, | node_ui_storage.attribute_hints.add_as( | ||||
| AvailableAttributeInfo{domain, data_type}); | AvailableAttributeInfo{attribute_name, domain, data_type}); | ||||
| } | } | ||||