Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_nodetree.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 856 Lines • ▼ Show 20 Lines | static bool rna_NodeTree_check(bNodeTree *ntree, ReportList *reports) | ||||
| else { | else { | ||||
| return true; | return true; | ||||
| } | } | ||||
| } | } | ||||
| static void rna_NodeTree_update(Main *bmain, Scene *UNUSED(scene), PointerRNA *ptr) | static void rna_NodeTree_update(Main *bmain, Scene *UNUSED(scene), PointerRNA *ptr) | ||||
| { | { | ||||
| bNodeTree *ntree = (bNodeTree *)ptr->owner_id; | bNodeTree *ntree = (bNodeTree *)ptr->owner_id; | ||||
| bNode *node = (bNode *)ptr->data; | |||||
| WM_main_add_notifier(NC_NODE | NA_EDITED, NULL); | WM_main_add_notifier(NC_NODE | NA_EDITED, NULL); | ||||
| WM_main_add_notifier(NC_SCENE | ND_NODES, &ntree->id); | WM_main_add_notifier(NC_SCENE | ND_NODES, &ntree->id); | ||||
| ED_node_tag_update_nodetree(bmain, ntree, node); | ED_node_tag_update_nodetree(bmain, ntree, NULL); | ||||
| } | } | ||||
| static bNode *rna_NodeTree_node_new(bNodeTree *ntree, | static bNode *rna_NodeTree_node_new(bNodeTree *ntree, | ||||
| bContext *C, | bContext *C, | ||||
| ReportList *reports, | ReportList *reports, | ||||
| const char *type) | const char *type) | ||||
| { | { | ||||
| bNodeType *ntype; | bNodeType *ntype; | ||||
| ▲ Show 20 Lines • Show All 8,753 Lines • Show Last 20 Lines | |||||