Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/composite/nodes/node_composite_huecorrect.cc
| Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | for (int c = 0; c < 3; c++) { | ||||
| CurveMap *cuma = &cumapping->cm[c]; | CurveMap *cuma = &cumapping->cm[c]; | ||||
| BKE_curvemap_reset(cuma, &cumapping->clipr, cumapping->preset, CURVEMAP_SLOPE_POSITIVE); | BKE_curvemap_reset(cuma, &cumapping->clipr, cumapping->preset, CURVEMAP_SLOPE_POSITIVE); | ||||
| } | } | ||||
| /* default to showing Saturation */ | /* default to showing Saturation */ | ||||
| cumapping->cur = 1; | cumapping->cur = 1; | ||||
| } | } | ||||
| void register_node_type_cmp_huecorrect(void) | void register_node_type_cmp_huecorrect() | ||||
| { | { | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| cmp_node_type_base(&ntype, CMP_NODE_HUECORRECT, "Hue Correct", NODE_CLASS_OP_COLOR, 0); | cmp_node_type_base(&ntype, CMP_NODE_HUECORRECT, "Hue Correct", NODE_CLASS_OP_COLOR, 0); | ||||
| ntype.declare = blender::nodes::cmp_node_huecorrect_declare; | ntype.declare = blender::nodes::cmp_node_huecorrect_declare; | ||||
| node_type_size(&ntype, 320, 140, 500); | node_type_size(&ntype, 320, 140, 500); | ||||
| node_type_init(&ntype, node_composit_init_huecorrect); | node_type_init(&ntype, node_composit_init_huecorrect); | ||||
| node_type_storage(&ntype, "CurveMapping", node_free_curves, node_copy_curves); | node_type_storage(&ntype, "CurveMapping", node_free_curves, node_copy_curves); | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||