Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_node/drawnode.c
| Show First 20 Lines • Show All 183 Lines • ▼ Show 20 Lines | static void node_buts_curvecol(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | ||||
| if (_sample_col[0] != SAMPLE_FLT_ISNONE) { | if (_sample_col[0] != SAMPLE_FLT_ISNONE) { | ||||
| cumap->flag |= CUMA_DRAW_SAMPLE; | cumap->flag |= CUMA_DRAW_SAMPLE; | ||||
| copy_v3_v3(cumap->sample, _sample_col); | copy_v3_v3(cumap->sample, _sample_col); | ||||
| } | } | ||||
| else { | else { | ||||
| cumap->flag &= ~CUMA_DRAW_SAMPLE; | cumap->flag &= ~CUMA_DRAW_SAMPLE; | ||||
| } | } | ||||
| uiTemplateCurveMapping(layout, ptr, "mapping", 'c', false, false, false, true); | /* "Tone" (Standard/Filmlike) only used in the Compositor. */ | ||||
| bNodeTree *ntree = (bNodeTree *)ptr->owner_id; | |||||
| uiTemplateCurveMapping( | |||||
| layout, ptr, "mapping", 'c', false, false, false, (ntree->type == NTREE_COMPOSIT)); | |||||
| } | } | ||||
| static void node_buts_normal(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | static void node_buts_normal(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | ||||
| { | { | ||||
| bNode *node = ptr->data; | bNode *node = ptr->data; | ||||
| /* first output stores normal */ | /* first output stores normal */ | ||||
| bNodeSocket *output = node->outputs.first; | bNodeSocket *output = node->outputs.first; | ||||
| PointerRNA sockptr; | PointerRNA sockptr; | ||||
| ▲ Show 20 Lines • Show All 4,044 Lines • Show Last 20 Lines | |||||