Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/readfile.c
| Show First 20 Lines • Show All 5,055 Lines • ▼ Show 20 Lines | |||||
| /* ************ READ SCENE ***************** */ | /* ************ READ SCENE ***************** */ | ||||
| /* patch for missing scene IDs, can't be in do-versions */ | /* patch for missing scene IDs, can't be in do-versions */ | ||||
| static void composite_patch(bNodeTree *ntree, Scene *scene) | static void composite_patch(bNodeTree *ntree, Scene *scene) | ||||
| { | { | ||||
| bNode *node; | bNode *node; | ||||
| for (node = ntree->nodes.first; node; node = node->next) { | for (node = ntree->nodes.first; node; node = node->next) { | ||||
| if (node->id==NULL && ELEM4(node->type, CMP_NODE_R_LAYERS, CMP_NODE_COMPOSITE, CMP_NODE_DEFOCUS, CMP_NODE_OUTPUT_FILE)) | if (node->id==NULL && node->type == CMP_NODE_R_LAYERS) | ||||
| node->id = &scene->id; | node->id = &scene->id; | ||||
| } | } | ||||
| } | } | ||||
| static void link_paint(FileData *fd, Scene *sce, Paint *p) | static void link_paint(FileData *fd, Scene *sce, Paint *p) | ||||
| { | { | ||||
| if (p) { | if (p) { | ||||
| p->brush = newlibadr_us(fd, sce->id.lib, p->brush); | p->brush = newlibadr_us(fd, sce->id.lib, p->brush); | ||||
| ▲ Show 20 Lines • Show All 4,204 Lines • Show Last 20 Lines | |||||