Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/intern/node_common.c
| Show First 20 Lines • Show All 265 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| bNodeSocket *input = node->inputs.first; | bNodeSocket *input = node->inputs.first; | ||||
| bNodeSocket *output = node->outputs.first; | bNodeSocket *output = node->outputs.first; | ||||
| bNodeLink *link; | bNodeLink *link; | ||||
| int type = SOCK_FLOAT; | int type = SOCK_FLOAT; | ||||
| const char *type_idname = nodeStaticSocketType(type, PROP_NONE); | const char *type_idname = nodeStaticSocketType(type, PROP_NONE); | ||||
| /* XXX it would be a little bit more efficient to restrict actual updates | /* XXX it would be a little bit more efficient to restrict actual updates | ||||
| * to rerout nodes connected to an updated node, but there's no reliable flag | * to reroute nodes connected to an updated node, but there's no reliable flag | ||||
| * to indicate updated nodes (node->update is not set on linking). | * to indicate updated nodes (node->update is not set on linking). | ||||
| */ | */ | ||||
| node->done = 1; | node->done = 1; | ||||
| /* recursive update */ | /* recursive update */ | ||||
| for (link = ntree->links.first; link; link = link->next) { | for (link = ntree->links.first; link; link = link->next) { | ||||
| bNode *fromnode = link->fromnode; | bNode *fromnode = link->fromnode; | ||||
| ▲ Show 20 Lines • Show All 318 Lines • Show Last 20 Lines | |||||