Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/composite/nodes/node_composite_crop.cc
| Show All 36 Lines | static void cmp_node_crop_declare(NodeDeclarationBuilder &b) | ||||
| b.add_input<decl::Color>(N_("Image")).default_value({1.0f, 1.0f, 1.0f, 1.0f}); | b.add_input<decl::Color>(N_("Image")).default_value({1.0f, 1.0f, 1.0f, 1.0f}); | ||||
| b.add_output<decl::Color>(N_("Image")); | b.add_output<decl::Color>(N_("Image")); | ||||
| } | } | ||||
| } // namespace blender::nodes | } // namespace blender::nodes | ||||
| static void node_composit_init_crop(bNodeTree *UNUSED(ntree), bNode *node) | static void node_composit_init_crop(bNodeTree *UNUSED(ntree), bNode *node) | ||||
| { | { | ||||
| NodeTwoXYs *nxy = MEM_cnew<NodeTwoXYs>(__func__); | NodeTwoXYs *nxy = MEM_cnew<NodeTwoXYs>(MEM_AT); | ||||
| node->storage = nxy; | node->storage = nxy; | ||||
| nxy->x1 = 0; | nxy->x1 = 0; | ||||
| nxy->x2 = 0; | nxy->x2 = 0; | ||||
| nxy->y1 = 0; | nxy->y1 = 0; | ||||
| nxy->y2 = 0; | nxy->y2 = 0; | ||||
| } | } | ||||
| static void node_composit_buts_crop(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | static void node_composit_buts_crop(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | ||||
| Show All 33 Lines | |||||