Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_node.h
| Show First 20 Lines • Show All 466 Lines • ▼ Show 20 Lines | |||||
| * the type may just be registered later. | * the type may just be registered later. | ||||
| * In that case the update_typeinfo function will set type-info on registration | * In that case the update_typeinfo function will set type-info on registration | ||||
| * and do necessary updates. | * and do necessary updates. | ||||
| */ | */ | ||||
| void ntreeSetTypes(const struct bContext *C, struct bNodeTree *ntree); | void ntreeSetTypes(const struct bContext *C, struct bNodeTree *ntree); | ||||
| struct bNodeTree *ntreeAddTree(struct Main *bmain, const char *name, const char *idname); | struct bNodeTree *ntreeAddTree(struct Main *bmain, const char *name, const char *idname); | ||||
| struct bNodeTree *ntreeAddTreeEmbedded(struct Main *bmain, | |||||
| struct ID *owner_id, | |||||
| const char *name, | |||||
| const char *idname); | |||||
| /* copy/free funcs, need to manage ID users */ | /* copy/free funcs, need to manage ID users */ | ||||
| /** | /** | ||||
| * Free (or release) any data used by this node-tree. | * Free (or release) any data used by this node-tree. | ||||
| * Does not free the node-tree itself and does no ID user counting. | * Does not free the node-tree itself and does no ID user counting. | ||||
| */ | */ | ||||
| void ntreeFreeTree(struct bNodeTree *ntree); | void ntreeFreeTree(struct bNodeTree *ntree); | ||||
| /** | /** | ||||
| ▲ Show 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | |||||
| /** | /** | ||||
| * This is only direct data, tree itself should have been written. | * This is only direct data, tree itself should have been written. | ||||
| */ | */ | ||||
| void ntreeBlendWrite(struct BlendWriter *writer, struct bNodeTree *ntree); | void ntreeBlendWrite(struct BlendWriter *writer, struct bNodeTree *ntree); | ||||
| /** | /** | ||||
| * \note `ntree` itself has been read! | * \note `ntree` itself has been read! | ||||
| */ | */ | ||||
| void ntreeBlendReadData(struct BlendDataReader *reader, struct bNodeTree *ntree); | void ntreeBlendReadData(struct BlendDataReader *reader, | ||||
| struct ID *owner_id, | |||||
| struct bNodeTree *ntree); | |||||
| void ntreeBlendReadLib(struct BlendLibReader *reader, struct bNodeTree *ntree); | void ntreeBlendReadLib(struct BlendLibReader *reader, struct bNodeTree *ntree); | ||||
| void ntreeBlendReadExpand(struct BlendExpander *expander, struct bNodeTree *ntree); | void ntreeBlendReadExpand(struct BlendExpander *expander, struct bNodeTree *ntree); | ||||
| /** \} */ | /** \} */ | ||||
| /* -------------------------------------------------------------------- */ | /* -------------------------------------------------------------------- */ | ||||
| /** \name Node Tree Interface | /** \name Node Tree Interface | ||||
| * \{ */ | * \{ */ | ||||
| ▲ Show 20 Lines • Show All 1,038 Lines • Show Last 20 Lines | |||||