Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/NOD_node_declaration.hh
| Context not available. | |||||
| Vector<SocketDeclarationPtr> inputs_; | Vector<SocketDeclarationPtr> inputs_; | ||||
| Vector<SocketDeclarationPtr> outputs_; | Vector<SocketDeclarationPtr> outputs_; | ||||
| bool is_function_node_ = false; | bool is_function_node_ = false; | ||||
| bool needs_attribute_search_ = false; | |||||
| friend NodeDeclarationBuilder; | friend NodeDeclarationBuilder; | ||||
| Context not available. | |||||
| return is_function_node_; | return is_function_node_; | ||||
| } | } | ||||
| bool needs_attribute_search() const | |||||
| { | |||||
| return needs_attribute_search_; | |||||
| } | |||||
| MEM_CXX_CLASS_ALLOC_FUNCS("NodeDeclaration") | MEM_CXX_CLASS_ALLOC_FUNCS("NodeDeclaration") | ||||
| }; | }; | ||||
| Context not available. | |||||
| declaration_.is_function_node_ = value; | declaration_.is_function_node_ = value; | ||||
| } | } | ||||
| /** Show attribute search in node's string input sockets. */ | |||||
| void needs_attribute_search(bool value = true) | |||||
| { | |||||
| declaration_.needs_attribute_search_ = value; | |||||
| } | |||||
| template<typename DeclType> | template<typename DeclType> | ||||
| typename DeclType::Builder &add_input(StringRef name, StringRef identifier = ""); | typename DeclType::Builder &add_input(StringRef name, StringRef identifier = ""); | ||||
| template<typename DeclType> | template<typename DeclType> | ||||
| Context not available. | |||||