Cleanup: replace UNUSED macro with commented args in C++ code
This is the conventional way of dealing with unused arguments in C++, since it works on all compilers. Regex find and replace: `UNUSED\((\w+)\)` -> `/*$1*/`
This commit is contained in:
@@ -36,11 +36,8 @@
|
||||
# include "COM_compositor.h"
|
||||
#endif
|
||||
|
||||
static void composite_get_from_context(const bContext *C,
|
||||
bNodeTreeType *UNUSED(treetype),
|
||||
bNodeTree **r_ntree,
|
||||
ID **r_id,
|
||||
ID **r_from)
|
||||
static void composite_get_from_context(
|
||||
const bContext *C, bNodeTreeType * /*treetype*/, bNodeTree **r_ntree, ID **r_id, ID **r_from)
|
||||
{
|
||||
Scene *scene = CTX_data_scene(C);
|
||||
|
||||
@@ -49,7 +46,7 @@ static void composite_get_from_context(const bContext *C,
|
||||
*r_ntree = scene->nodetree;
|
||||
}
|
||||
|
||||
static void foreach_nodeclass(Scene *UNUSED(scene), void *calldata, bNodeClassCallback func)
|
||||
static void foreach_nodeclass(Scene * /*scene*/, void *calldata, bNodeClassCallback func)
|
||||
{
|
||||
func(calldata, NODE_CLASS_INPUT, N_("Input"));
|
||||
func(calldata, NODE_CLASS_OUTPUT, N_("Output"));
|
||||
@@ -64,7 +61,7 @@ static void foreach_nodeclass(Scene *UNUSED(scene), void *calldata, bNodeClassCa
|
||||
func(calldata, NODE_CLASS_LAYOUT, N_("Layout"));
|
||||
}
|
||||
|
||||
static void free_node_cache(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void free_node_cache(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
LISTBASE_FOREACH (bNodeSocket *, sock, &node->outputs) {
|
||||
if (sock->cache) {
|
||||
@@ -158,7 +155,7 @@ static void update(bNodeTree *ntree)
|
||||
ntree_update_reroute_nodes(ntree);
|
||||
}
|
||||
|
||||
static void composite_node_add_init(bNodeTree *UNUSED(bnodetree), bNode *bnode)
|
||||
static void composite_node_add_init(bNodeTree * /*bnodetree*/, bNode *bnode)
|
||||
{
|
||||
/* Composite node will only show previews for input classes
|
||||
* by default, other will be hidden
|
||||
@@ -168,7 +165,7 @@ static void composite_node_add_init(bNodeTree *UNUSED(bnodetree), bNode *bnode)
|
||||
}
|
||||
}
|
||||
|
||||
static bool composite_node_tree_socket_type_valid(bNodeTreeType *UNUSED(ntreetype),
|
||||
static bool composite_node_tree_socket_type_valid(bNodeTreeType * /*ntreetype*/,
|
||||
bNodeSocketType *socket_type)
|
||||
{
|
||||
return nodeIsStaticSocketType(socket_type) &&
|
||||
|
||||
@@ -9,9 +9,7 @@
|
||||
|
||||
#include "node_composite_util.hh"
|
||||
|
||||
bool cmp_node_poll_default(bNodeType *UNUSED(ntype),
|
||||
bNodeTree *ntree,
|
||||
const char **r_disabled_hint)
|
||||
bool cmp_node_poll_default(bNodeType * /*ntype*/, bNodeTree *ntree, const char **r_disabled_hint)
|
||||
{
|
||||
if (!STREQ(ntree->idname, "CompositorNodeTree")) {
|
||||
*r_disabled_hint = TIP_("Not a compositor node tree");
|
||||
@@ -20,7 +18,7 @@ bool cmp_node_poll_default(bNodeType *UNUSED(ntype),
|
||||
return true;
|
||||
}
|
||||
|
||||
void cmp_node_update_default(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
void cmp_node_update_default(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
LISTBASE_FOREACH (bNodeSocket *, sock, &node->outputs) {
|
||||
if (sock->cache) {
|
||||
|
||||
@@ -37,12 +37,12 @@ static void cmp_node_alphaover_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Color>(N_("Image"));
|
||||
}
|
||||
|
||||
static void node_alphaover_init(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_alphaover_init(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
node->storage = MEM_cnew<NodeTwoFloats>(__func__);
|
||||
}
|
||||
|
||||
static void node_composit_buts_alphaover(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_composit_buts_alphaover(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiLayout *col;
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ static void cmp_node_antialiasing_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Color>(N_("Image"));
|
||||
}
|
||||
|
||||
static void node_composit_init_antialiasing(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_composit_init_antialiasing(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
NodeAntiAliasingData *data = MEM_cnew<NodeAntiAliasingData>(__func__);
|
||||
|
||||
@@ -33,7 +33,7 @@ static void node_composit_init_antialiasing(bNodeTree *UNUSED(ntree), bNode *nod
|
||||
node->storage = data;
|
||||
}
|
||||
|
||||
static void node_composit_buts_antialiasing(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_composit_buts_antialiasing(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiLayout *col;
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ static void cmp_node_bilateralblur_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Color>(N_("Image"));
|
||||
}
|
||||
|
||||
static void node_composit_init_bilateralblur(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_composit_init_bilateralblur(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
NodeBilateralBlurData *nbbd = MEM_cnew<NodeBilateralBlurData>(__func__);
|
||||
node->storage = nbbd;
|
||||
@@ -43,9 +43,7 @@ static void node_composit_init_bilateralblur(bNodeTree *UNUSED(ntree), bNode *no
|
||||
nbbd->sigma_space = 5.0;
|
||||
}
|
||||
|
||||
static void node_composit_buts_bilateralblur(uiLayout *layout,
|
||||
bContext *UNUSED(C),
|
||||
PointerRNA *ptr)
|
||||
static void node_composit_buts_bilateralblur(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiLayout *col;
|
||||
|
||||
|
||||
@@ -42,14 +42,14 @@ static void cmp_node_blur_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Color>(N_("Image"));
|
||||
}
|
||||
|
||||
static void node_composit_init_blur(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_composit_init_blur(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
NodeBlurData *data = MEM_cnew<NodeBlurData>(__func__);
|
||||
data->filtertype = R_FILTER_GAUSS;
|
||||
node->storage = data;
|
||||
}
|
||||
|
||||
static void node_composit_buts_blur(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_composit_buts_blur(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiLayout *col, *row;
|
||||
|
||||
|
||||
@@ -43,13 +43,13 @@ static void cmp_node_bokehblur_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Color>(N_("Image"));
|
||||
}
|
||||
|
||||
static void node_composit_init_bokehblur(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_composit_init_bokehblur(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
node->custom3 = 4.0f;
|
||||
node->custom4 = 16.0f;
|
||||
}
|
||||
|
||||
static void node_composit_buts_bokehblur(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_composit_buts_bokehblur(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiItemR(layout, ptr, "use_variable_size", UI_ITEM_R_SPLIT_EMPTY_NAME, nullptr, ICON_NONE);
|
||||
// uiItemR(layout, ptr, "f_stop", UI_ITEM_R_SPLIT_EMPTY_NAME, nullptr, ICON_NONE); /* UNUSED */
|
||||
|
||||
@@ -29,7 +29,7 @@ static void cmp_node_bokehimage_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Color>(N_("Image"));
|
||||
}
|
||||
|
||||
static void node_composit_init_bokehimage(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_composit_init_bokehimage(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
NodeBokehImage *data = MEM_cnew<NodeBokehImage>(__func__);
|
||||
data->angle = 0.0f;
|
||||
@@ -40,7 +40,7 @@ static void node_composit_init_bokehimage(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
node->storage = data;
|
||||
}
|
||||
|
||||
static void node_composit_buts_bokehimage(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_composit_buts_bokehimage(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiItemR(layout, ptr, "flaps", UI_ITEM_R_SPLIT_EMPTY_NAME, nullptr, ICON_NONE);
|
||||
uiItemR(layout, ptr, "angle", UI_ITEM_R_SPLIT_EMPTY_NAME, nullptr, ICON_NONE);
|
||||
|
||||
@@ -32,7 +32,7 @@ static void cmp_node_boxmask_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Float>(N_("Mask"));
|
||||
}
|
||||
|
||||
static void node_composit_init_boxmask(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_composit_init_boxmask(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
NodeBoxMask *data = MEM_cnew<NodeBoxMask>(__func__);
|
||||
data->x = 0.5;
|
||||
@@ -43,7 +43,7 @@ static void node_composit_init_boxmask(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
node->storage = data;
|
||||
}
|
||||
|
||||
static void node_composit_buts_boxmask(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_composit_buts_boxmask(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiLayout *row;
|
||||
|
||||
|
||||
@@ -28,14 +28,12 @@ static void cmp_node_brightcontrast_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Color>(N_("Image"));
|
||||
}
|
||||
|
||||
static void node_composit_init_brightcontrast(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_composit_init_brightcontrast(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
node->custom1 = 1;
|
||||
}
|
||||
|
||||
static void node_composit_buts_brightcontrast(uiLayout *layout,
|
||||
bContext *UNUSED(C),
|
||||
PointerRNA *ptr)
|
||||
static void node_composit_buts_brightcontrast(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiItemR(layout, ptr, "use_premultiply", UI_ITEM_R_SPLIT_EMPTY_NAME, nullptr, ICON_NONE);
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ static void cmp_node_channel_matte_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Float>(N_("Matte"));
|
||||
}
|
||||
|
||||
static void node_composit_init_channel_matte(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_composit_init_channel_matte(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
NodeChroma *c = MEM_cnew<NodeChroma>(__func__);
|
||||
node->storage = c;
|
||||
@@ -46,9 +46,7 @@ static void node_composit_init_channel_matte(bNodeTree *UNUSED(ntree), bNode *no
|
||||
node->custom2 = 2; /* Green Channel. */
|
||||
}
|
||||
|
||||
static void node_composit_buts_channel_matte(uiLayout *layout,
|
||||
bContext *UNUSED(C),
|
||||
PointerRNA *ptr)
|
||||
static void node_composit_buts_channel_matte(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiLayout *col, *row;
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ static void cmp_node_chroma_matte_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Float>(N_("Matte"));
|
||||
}
|
||||
|
||||
static void node_composit_init_chroma_matte(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_composit_init_chroma_matte(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
NodeChroma *c = MEM_cnew<NodeChroma>(__func__);
|
||||
node->storage = c;
|
||||
@@ -47,7 +47,7 @@ static void node_composit_init_chroma_matte(bNodeTree *UNUSED(ntree), bNode *nod
|
||||
c->fstrength = 1.0f;
|
||||
}
|
||||
|
||||
static void node_composit_buts_chroma_matte(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_composit_buts_chroma_matte(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiLayout *col;
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ static void cmp_node_color_matte_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Float>(N_("Matte"));
|
||||
}
|
||||
|
||||
static void node_composit_init_color_matte(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_composit_init_color_matte(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
NodeChroma *c = MEM_cnew<NodeChroma>(__func__);
|
||||
node->storage = c;
|
||||
@@ -43,7 +43,7 @@ static void node_composit_init_color_matte(bNodeTree *UNUSED(ntree), bNode *node
|
||||
c->fstrength = 1.0f;
|
||||
}
|
||||
|
||||
static void node_composit_buts_color_matte(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_composit_buts_color_matte(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiLayout *col;
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ static void cmp_node_color_spill_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Color>(N_("Image"));
|
||||
}
|
||||
|
||||
static void node_composit_init_color_spill(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_composit_init_color_spill(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
NodeColorspill *ncs = MEM_cnew<NodeColorspill>(__func__);
|
||||
node->storage = ncs;
|
||||
@@ -47,7 +47,7 @@ static void node_composit_init_color_spill(bNodeTree *UNUSED(ntree), bNode *node
|
||||
ncs->unspill = 0; /* do not use unspill */
|
||||
}
|
||||
|
||||
static void node_composit_buts_color_spill(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_composit_buts_color_spill(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiLayout *row, *col;
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
* (sRGB conversion happens for LGG),
|
||||
* but this keeps settings comparable. */
|
||||
|
||||
void ntreeCompositColorBalanceSyncFromLGG(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
void ntreeCompositColorBalanceSyncFromLGG(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
NodeColorBalance *n = (NodeColorBalance *)node->storage;
|
||||
|
||||
@@ -34,7 +34,7 @@ void ntreeCompositColorBalanceSyncFromLGG(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
}
|
||||
}
|
||||
|
||||
void ntreeCompositColorBalanceSyncFromCDL(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
void ntreeCompositColorBalanceSyncFromCDL(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
NodeColorBalance *n = (NodeColorBalance *)node->storage;
|
||||
|
||||
@@ -64,7 +64,7 @@ static void cmp_node_colorbalance_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Color>(N_("Image"));
|
||||
}
|
||||
|
||||
static void node_composit_init_colorbalance(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_composit_init_colorbalance(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
NodeColorBalance *n = MEM_cnew<NodeColorBalance>(__func__);
|
||||
|
||||
@@ -78,7 +78,7 @@ static void node_composit_init_colorbalance(bNodeTree *UNUSED(ntree), bNode *nod
|
||||
node->storage = n;
|
||||
}
|
||||
|
||||
static void node_composit_buts_colorbalance(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_composit_buts_colorbalance(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiLayout *split, *col, *row;
|
||||
|
||||
@@ -123,9 +123,7 @@ static void node_composit_buts_colorbalance(uiLayout *layout, bContext *UNUSED(C
|
||||
}
|
||||
}
|
||||
|
||||
static void node_composit_buts_colorbalance_ex(uiLayout *layout,
|
||||
bContext *UNUSED(C),
|
||||
PointerRNA *ptr)
|
||||
static void node_composit_buts_colorbalance_ex(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiItemR(layout, ptr, "correction_method", UI_ITEM_R_SPLIT_EMPTY_NAME, nullptr, ICON_NONE);
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ static void cmp_node_colorcorrection_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Color>(N_("Image"));
|
||||
}
|
||||
|
||||
static void node_composit_init_colorcorrection(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_composit_init_colorcorrection(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
NodeColorCorrection *n = MEM_cnew<NodeColorCorrection>(__func__);
|
||||
n->startmidtones = 0.2f;
|
||||
@@ -64,9 +64,7 @@ static void node_composit_init_colorcorrection(bNodeTree *UNUSED(ntree), bNode *
|
||||
node->storage = n;
|
||||
}
|
||||
|
||||
static void node_composit_buts_colorcorrection(uiLayout *layout,
|
||||
bContext *UNUSED(C),
|
||||
PointerRNA *ptr)
|
||||
static void node_composit_buts_colorcorrection(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiLayout *row;
|
||||
|
||||
@@ -155,7 +153,7 @@ static void node_composit_buts_colorcorrection(uiLayout *layout,
|
||||
}
|
||||
|
||||
static void node_composit_buts_colorcorrection_ex(uiLayout *layout,
|
||||
bContext *UNUSED(C),
|
||||
bContext * /*C*/,
|
||||
PointerRNA *ptr)
|
||||
{
|
||||
uiLayout *row;
|
||||
|
||||
@@ -30,7 +30,7 @@ static void cmp_node_composite_declare(NodeDeclarationBuilder &b)
|
||||
b.add_input<decl::Float>(N_("Z")).default_value(1.0f).min(0.0f).max(1.0f);
|
||||
}
|
||||
|
||||
static void node_composit_buts_composite(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_composit_buts_composite(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiItemR(layout, ptr, "use_alpha", UI_ITEM_R_SPLIT_EMPTY_NAME, nullptr, ICON_NONE);
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ static void CMP_NODE_CONVERT_COLOR_SPACE_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Color>(N_("Image"));
|
||||
}
|
||||
|
||||
static void node_composit_init_convert_colorspace(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_composit_init_convert_colorspace(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
NodeConvertColorSpace *ncs = static_cast<NodeConvertColorSpace *>(
|
||||
MEM_callocN(sizeof(NodeConvertColorSpace), "node colorspace"));
|
||||
@@ -42,7 +42,7 @@ static void node_composit_init_convert_colorspace(bNodeTree *UNUSED(ntree), bNod
|
||||
}
|
||||
|
||||
static void node_composit_buts_convert_colorspace(uiLayout *layout,
|
||||
bContext *UNUSED(C),
|
||||
bContext * /*C*/,
|
||||
PointerRNA *ptr)
|
||||
{
|
||||
uiItemR(layout, ptr, "from_color_space", UI_ITEM_R_SPLIT_EMPTY_NAME, nullptr, ICON_NONE);
|
||||
|
||||
@@ -37,7 +37,7 @@ static void cmp_node_crop_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Color>(N_("Image"));
|
||||
}
|
||||
|
||||
static void node_composit_init_crop(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_composit_init_crop(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
NodeTwoXYs *nxy = MEM_cnew<NodeTwoXYs>(__func__);
|
||||
node->storage = nxy;
|
||||
@@ -47,7 +47,7 @@ static void node_composit_init_crop(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
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 * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiLayout *col;
|
||||
|
||||
|
||||
@@ -234,7 +234,7 @@ static bNodeSocketTemplate cmp_node_cryptomatte_out[] = {
|
||||
{-1, ""},
|
||||
};
|
||||
|
||||
static void node_init_cryptomatte(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_init_cryptomatte(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
NodeCryptomatte *user = MEM_cnew<NodeCryptomatte>(__func__);
|
||||
node->storage = user;
|
||||
@@ -262,7 +262,7 @@ static void node_free_cryptomatte(bNode *node)
|
||||
}
|
||||
}
|
||||
|
||||
static void node_copy_cryptomatte(bNodeTree *UNUSED(dest_ntree),
|
||||
static void node_copy_cryptomatte(bNodeTree * /*dst_ntree*/,
|
||||
bNode *dest_node,
|
||||
const bNode *src_node)
|
||||
{
|
||||
@@ -275,7 +275,7 @@ static void node_copy_cryptomatte(bNodeTree *UNUSED(dest_ntree),
|
||||
dest_node->storage = dest_nc;
|
||||
}
|
||||
|
||||
static bool node_poll_cryptomatte(bNodeType *UNUSED(ntype),
|
||||
static bool node_poll_cryptomatte(bNodeType * /*ntype*/,
|
||||
bNodeTree *ntree,
|
||||
const char **r_disabled_hint)
|
||||
{
|
||||
|
||||
@@ -29,7 +29,7 @@ static void cmp_node_time_declare(NodeDeclarationBuilder &b)
|
||||
}
|
||||
|
||||
/* custom1 = start_frame, custom2 = end_frame */
|
||||
static void node_composit_init_curves_time(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_composit_init_curves_time(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
node->custom1 = 1;
|
||||
node->custom2 = 250;
|
||||
@@ -121,12 +121,12 @@ static void cmp_node_curve_vec_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Vector>(N_("Vector"));
|
||||
}
|
||||
|
||||
static void node_composit_init_curve_vec(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_composit_init_curve_vec(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
node->storage = BKE_curvemapping_add(3, -1.0f, -1.0f, 1.0f, 1.0f);
|
||||
}
|
||||
|
||||
static void node_buts_curvevec(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_buts_curvevec(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiTemplateCurveMapping(layout, ptr, "mapping", 'v', false, false, false, false);
|
||||
}
|
||||
@@ -222,7 +222,7 @@ static void cmp_node_rgbcurves_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Color>(N_("Image"));
|
||||
}
|
||||
|
||||
static void node_composit_init_curve_rgb(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_composit_init_curve_rgb(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
node->storage = BKE_curvemapping_add(4, 0.0f, 0.0f, 1.0f, 1.0f);
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ static void cmp_node_defocus_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Color>(N_("Image"));
|
||||
}
|
||||
|
||||
static void node_composit_init_defocus(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_composit_init_defocus(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
/* defocus node */
|
||||
NodeDefocus *nbd = MEM_cnew<NodeDefocus>(__func__);
|
||||
|
||||
@@ -28,7 +28,7 @@ static void cmp_node_denoise_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Color>(N_("Image"));
|
||||
}
|
||||
|
||||
static void node_composit_init_denonise(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_composit_init_denonise(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
NodeDenoise *ndg = MEM_cnew<NodeDenoise>(__func__);
|
||||
ndg->hdr = true;
|
||||
@@ -36,7 +36,7 @@ static void node_composit_init_denonise(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
node->storage = ndg;
|
||||
}
|
||||
|
||||
static void node_composit_buts_denoise(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_composit_buts_denoise(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
#ifndef WITH_OPENIMAGEDENOISE
|
||||
uiItemL(layout, IFACE_("Disabled, built without OpenImageDenoise"), ICON_ERROR);
|
||||
|
||||
@@ -33,13 +33,13 @@ static void cmp_node_despeckle_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Color>(N_("Image"));
|
||||
}
|
||||
|
||||
static void node_composit_init_despeckle(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_composit_init_despeckle(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
node->custom3 = 0.5f;
|
||||
node->custom4 = 0.5f;
|
||||
}
|
||||
|
||||
static void node_composit_buts_despeckle(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_composit_buts_despeckle(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiLayout *col;
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ static void cmp_node_diff_matte_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Float>(N_("Matte"));
|
||||
}
|
||||
|
||||
static void node_composit_init_diff_matte(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_composit_init_diff_matte(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
NodeChroma *c = MEM_cnew<NodeChroma>(__func__);
|
||||
node->storage = c;
|
||||
@@ -40,7 +40,7 @@ static void node_composit_init_diff_matte(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
c->t2 = 0.1f;
|
||||
}
|
||||
|
||||
static void node_composit_buts_diff_matte(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_composit_buts_diff_matte(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiLayout *col;
|
||||
|
||||
|
||||
@@ -41,14 +41,14 @@ static void cmp_node_dilate_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Float>(N_("Mask"));
|
||||
}
|
||||
|
||||
static void node_composit_init_dilateerode(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_composit_init_dilateerode(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
NodeDilateErode *data = MEM_cnew<NodeDilateErode>(__func__);
|
||||
data->falloff = PROP_SMOOTH;
|
||||
node->storage = data;
|
||||
}
|
||||
|
||||
static void node_composit_buts_dilateerode(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_composit_buts_dilateerode(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiItemR(layout, ptr, "mode", UI_ITEM_R_SPLIT_EMPTY_NAME, nullptr, ICON_NONE);
|
||||
uiItemR(layout, ptr, "distance", UI_ITEM_R_SPLIT_EMPTY_NAME, nullptr, ICON_NONE);
|
||||
|
||||
@@ -32,7 +32,7 @@ static void cmp_node_directional_blur_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Color>(N_("Image"));
|
||||
}
|
||||
|
||||
static void node_composit_init_dblur(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_composit_init_dblur(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
NodeDBlurData *ndbd = MEM_cnew<NodeDBlurData>(__func__);
|
||||
node->storage = ndbd;
|
||||
@@ -41,7 +41,7 @@ static void node_composit_init_dblur(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
ndbd->center_y = 0.5;
|
||||
}
|
||||
|
||||
static void node_composit_buts_dblur(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_composit_buts_dblur(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiLayout *col;
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ static void cmp_node_distance_matte_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Float>(N_("Matte"));
|
||||
}
|
||||
|
||||
static void node_composit_init_distance_matte(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_composit_init_distance_matte(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
NodeChroma *c = MEM_cnew<NodeChroma>(__func__);
|
||||
node->storage = c;
|
||||
@@ -41,9 +41,7 @@ static void node_composit_init_distance_matte(bNodeTree *UNUSED(ntree), bNode *n
|
||||
c->t2 = 0.1f;
|
||||
}
|
||||
|
||||
static void node_composit_buts_distance_matte(uiLayout *layout,
|
||||
bContext *UNUSED(C),
|
||||
PointerRNA *ptr)
|
||||
static void node_composit_buts_distance_matte(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiLayout *col, *row;
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ static void cmp_node_double_edge_mask_declare(NodeDeclarationBuilder &b)
|
||||
}
|
||||
|
||||
static void node_composit_buts_double_edge_mask(uiLayout *layout,
|
||||
bContext *UNUSED(C),
|
||||
bContext * /*C*/,
|
||||
PointerRNA *ptr)
|
||||
{
|
||||
uiLayout *col;
|
||||
|
||||
@@ -32,7 +32,7 @@ static void cmp_node_ellipsemask_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Float>(N_("Mask"));
|
||||
}
|
||||
|
||||
static void node_composit_init_ellipsemask(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_composit_init_ellipsemask(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
NodeEllipseMask *data = MEM_cnew<NodeEllipseMask>(__func__);
|
||||
data->x = 0.5;
|
||||
@@ -43,7 +43,7 @@ static void node_composit_init_ellipsemask(bNodeTree *UNUSED(ntree), bNode *node
|
||||
node->storage = data;
|
||||
}
|
||||
|
||||
static void node_composit_buts_ellipsemask(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_composit_buts_ellipsemask(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiLayout *row;
|
||||
row = uiLayoutRow(layout, true);
|
||||
|
||||
@@ -33,7 +33,7 @@ static void cmp_node_filter_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Color>(N_("Image"));
|
||||
}
|
||||
|
||||
static void node_composit_buts_filter(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_composit_buts_filter(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiItemR(layout, ptr, "filter_type", UI_ITEM_R_SPLIT_EMPTY_NAME, "", ICON_NONE);
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ static void cmp_node_flip_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Color>(N_("Image"));
|
||||
}
|
||||
|
||||
static void node_composit_buts_flip(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_composit_buts_flip(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiItemR(layout, ptr, "axis", UI_ITEM_R_SPLIT_EMPTY_NAME, "", ICON_NONE);
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ static void cmp_node_glare_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Color>(N_("Image"));
|
||||
}
|
||||
|
||||
static void node_composit_init_glare(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_composit_init_glare(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
NodeGlare *ndg = MEM_cnew<NodeGlare>(__func__);
|
||||
ndg->quality = 1;
|
||||
@@ -39,7 +39,7 @@ static void node_composit_init_glare(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
node->storage = ndg;
|
||||
}
|
||||
|
||||
static void node_composit_buts_glare(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_composit_buts_glare(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiItemR(layout, ptr, "glare_type", UI_ITEM_R_SPLIT_EMPTY_NAME, "", ICON_NONE);
|
||||
uiItemR(layout, ptr, "quality", UI_ITEM_R_SPLIT_EMPTY_NAME, "", ICON_NONE);
|
||||
|
||||
@@ -31,7 +31,7 @@ static void cmp_node_huecorrect_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Color>(N_("Image"));
|
||||
}
|
||||
|
||||
static void node_composit_init_huecorrect(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_composit_init_huecorrect(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
node->storage = BKE_curvemapping_add(1, 0.0f, 0.0f, 1.0f, 1.0f);
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ static void cmp_node_idmask_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Float>(N_("Alpha"));
|
||||
}
|
||||
|
||||
static void node_composit_buts_id_mask(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_composit_buts_id_mask(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiItemR(layout, ptr, "index", UI_ITEM_R_SPLIT_EMPTY_NAME, nullptr, ICON_NONE);
|
||||
uiItemR(layout, ptr, "use_antialiasing", UI_ITEM_R_SPLIT_EMPTY_NAME, nullptr, ICON_NONE);
|
||||
|
||||
@@ -80,7 +80,7 @@ static void cmp_node_image_add_pass_output(bNodeTree *ntree,
|
||||
const char *passname,
|
||||
int rres_index,
|
||||
eNodeSocketDatatype type,
|
||||
int UNUSED(is_rlayers),
|
||||
int /*is_rlayers*/,
|
||||
LinkNodePair *available_sockets,
|
||||
int *prev_index)
|
||||
{
|
||||
@@ -273,8 +273,8 @@ static void cmp_node_rlayer_create_outputs_cb(void *userdata,
|
||||
Scene *scene,
|
||||
ViewLayer *view_layer,
|
||||
const char *name,
|
||||
int UNUSED(channels),
|
||||
const char *UNUSED(chanid),
|
||||
int /*channels*/,
|
||||
const char * /*chanid*/,
|
||||
eNodeSocketDatatype type)
|
||||
{
|
||||
CreateOutputUserData &data = *(CreateOutputUserData *)userdata;
|
||||
@@ -426,7 +426,7 @@ static void node_composit_free_image(bNode *node)
|
||||
MEM_freeN(node->storage);
|
||||
}
|
||||
|
||||
static void node_composit_copy_image(bNodeTree *UNUSED(dest_ntree),
|
||||
static void node_composit_copy_image(bNodeTree * /*dst_ntree*/,
|
||||
bNode *dest_node,
|
||||
const bNode *src_node)
|
||||
{
|
||||
@@ -710,7 +710,7 @@ static void node_composit_init_rlayers(const bContext *C, PointerRNA *ptr)
|
||||
}
|
||||
}
|
||||
|
||||
static bool node_composit_poll_rlayers(bNodeType *UNUSED(ntype),
|
||||
static bool node_composit_poll_rlayers(bNodeType * /*ntype*/,
|
||||
bNodeTree *ntree,
|
||||
const char **r_disabled_hint)
|
||||
{
|
||||
@@ -749,7 +749,7 @@ static void node_composit_free_rlayers(bNode *node)
|
||||
}
|
||||
}
|
||||
|
||||
static void node_composit_copy_rlayers(bNodeTree *UNUSED(dest_ntree),
|
||||
static void node_composit_copy_rlayers(bNodeTree * /*dst_ntree*/,
|
||||
bNode *dest_node,
|
||||
const bNode *src_node)
|
||||
{
|
||||
|
||||
@@ -22,7 +22,7 @@ static void cmp_node_inpaint_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Color>(N_("Image"));
|
||||
}
|
||||
|
||||
static void node_composit_buts_inpaint(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_composit_buts_inpaint(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiItemR(layout, ptr, "distance", UI_ITEM_R_SPLIT_EMPTY_NAME, nullptr, ICON_NONE);
|
||||
}
|
||||
|
||||
@@ -32,12 +32,12 @@ static void cmp_node_invert_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Color>(N_("Color"));
|
||||
}
|
||||
|
||||
static void node_composit_init_invert(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_composit_init_invert(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
node->custom1 |= CMP_CHAN_RGB;
|
||||
}
|
||||
|
||||
static void node_composit_buts_invert(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_composit_buts_invert(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiLayout *col;
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ static void cmp_node_keying_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Float>(N_("Edges"));
|
||||
}
|
||||
|
||||
static void node_composit_init_keying(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_composit_init_keying(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
NodeKeyingData *data = MEM_cnew<NodeKeyingData>(__func__);
|
||||
|
||||
@@ -47,7 +47,7 @@ static void node_composit_init_keying(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
node->storage = data;
|
||||
}
|
||||
|
||||
static void node_composit_buts_keying(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_composit_buts_keying(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
/* bNode *node = (bNode*)ptr->data; */ /* UNUSED */
|
||||
|
||||
|
||||
@@ -52,14 +52,14 @@ static void cmp_node_lensdist_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Color>(N_("Image"));
|
||||
}
|
||||
|
||||
static void node_composit_init_lensdist(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_composit_init_lensdist(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
NodeLensDist *nld = MEM_cnew<NodeLensDist>(__func__);
|
||||
nld->jit = nld->proj = nld->fit = 0;
|
||||
node->storage = nld;
|
||||
}
|
||||
|
||||
static void node_composit_buts_lensdist(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_composit_buts_lensdist(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiLayout *col;
|
||||
|
||||
|
||||
@@ -23,12 +23,12 @@ static void cmp_node_levels_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Float>(N_("Std Dev"));
|
||||
}
|
||||
|
||||
static void node_composit_init_view_levels(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_composit_init_view_levels(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
node->custom1 = 1; /* All channels. */
|
||||
}
|
||||
|
||||
static void node_composit_buts_view_levels(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_composit_buts_view_levels(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiItemR(layout, ptr, "channel", UI_ITEM_R_SPLIT_EMPTY_NAME, "", ICON_NONE);
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ static void cmp_node_luma_matte_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Float>(N_("Matte"));
|
||||
}
|
||||
|
||||
static void node_composit_init_luma_matte(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_composit_init_luma_matte(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
NodeChroma *c = MEM_cnew<NodeChroma>(__func__);
|
||||
node->storage = c;
|
||||
@@ -39,7 +39,7 @@ static void node_composit_init_luma_matte(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
c->t2 = 0.0f;
|
||||
}
|
||||
|
||||
static void node_composit_buts_luma_matte(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_composit_buts_luma_matte(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiLayout *col;
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ static void cmp_node_map_range_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Float>(N_("Value"));
|
||||
}
|
||||
|
||||
static void node_composit_buts_map_range(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_composit_buts_map_range(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiLayout *col;
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ static void cmp_node_map_uv_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Color>(N_("Image"));
|
||||
}
|
||||
|
||||
static void node_composit_buts_map_uv(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_composit_buts_map_uv(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiItemR(layout, ptr, "alpha", UI_ITEM_R_SPLIT_EMPTY_NAME, nullptr, ICON_NONE);
|
||||
}
|
||||
|
||||
@@ -34,12 +34,12 @@ static void cmp_node_map_value_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Float>(N_("Value"));
|
||||
}
|
||||
|
||||
static void node_composit_init_map_value(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_composit_init_map_value(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
node->storage = BKE_texture_mapping_add(TEXMAP_TYPE_POINT);
|
||||
}
|
||||
|
||||
static void node_composit_buts_map_value(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_composit_buts_map_value(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiLayout *sub, *col;
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ static void cmp_node_mask_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Float>(N_("Mask"));
|
||||
}
|
||||
|
||||
static void node_composit_init_mask(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_composit_init_mask(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
NodeMask *data = MEM_cnew<NodeMask>(__func__);
|
||||
data->size_x = data->size_y = 256;
|
||||
@@ -33,7 +33,7 @@ static void node_composit_init_mask(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
node->custom3 = 0.5f; /* shutter */
|
||||
}
|
||||
|
||||
static void node_mask_label(const bNodeTree *UNUSED(ntree),
|
||||
static void node_mask_label(const bNodeTree * /*ntree*/,
|
||||
const bNode *node,
|
||||
char *label,
|
||||
int maxlen)
|
||||
|
||||
@@ -26,7 +26,7 @@ static void cmp_node_moviedistortion_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Color>(N_("Image"));
|
||||
}
|
||||
|
||||
static void label(const bNodeTree *UNUSED(ntree), const bNode *node, char *label, int maxlen)
|
||||
static void label(const bNodeTree * /*ntree*/, const bNode *node, char *label, int maxlen)
|
||||
{
|
||||
if (node->custom1 == 0) {
|
||||
BLI_strncpy(label, IFACE_("Undistortion"), maxlen);
|
||||
@@ -54,7 +54,7 @@ static void storage_free(bNode *node)
|
||||
node->storage = nullptr;
|
||||
}
|
||||
|
||||
static void storage_copy(bNodeTree *UNUSED(dest_ntree), bNode *dest_node, const bNode *src_node)
|
||||
static void storage_copy(bNodeTree * /*dst_ntree*/, bNode *dest_node, const bNode *src_node)
|
||||
{
|
||||
if (src_node->storage) {
|
||||
dest_node->storage = BKE_tracking_distortion_copy((MovieDistortion *)src_node->storage);
|
||||
|
||||
@@ -231,9 +231,7 @@ static void free_output_file(bNode *node)
|
||||
MEM_freeN(node->storage);
|
||||
}
|
||||
|
||||
static void copy_output_file(bNodeTree *UNUSED(dest_ntree),
|
||||
bNode *dest_node,
|
||||
const bNode *src_node)
|
||||
static void copy_output_file(bNodeTree * /*dst_ntree*/, bNode *dest_node, const bNode *src_node)
|
||||
{
|
||||
bNodeSocket *src_sock, *dest_sock;
|
||||
|
||||
@@ -282,7 +280,7 @@ static void update_output_file(bNodeTree *ntree, bNode *node)
|
||||
}
|
||||
}
|
||||
|
||||
static void node_composit_buts_file_output(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_composit_buts_file_output(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
PointerRNA imfptr = RNA_pointer_get(ptr, "format");
|
||||
const bool multilayer = RNA_enum_get(&imfptr, "file_format") == R_IMF_IMTYPE_MULTILAYER;
|
||||
|
||||
@@ -26,7 +26,7 @@ static void cmp_node_premulkey_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Color>(N_("Image"));
|
||||
}
|
||||
|
||||
static void node_composit_buts_premulkey(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_composit_buts_premulkey(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiItemR(layout, ptr, "mapping", UI_ITEM_R_SPLIT_EMPTY_NAME, "", ICON_NONE);
|
||||
}
|
||||
|
||||
@@ -33,12 +33,12 @@ static void cmp_node_rotate_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Color>(N_("Image"));
|
||||
}
|
||||
|
||||
static void node_composit_init_rotate(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_composit_init_rotate(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
node->custom1 = 1; /* Bilinear Filter. */
|
||||
}
|
||||
|
||||
static void node_composit_buts_rotate(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_composit_buts_rotate(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiItemR(layout, ptr, "filter_type", UI_ITEM_R_SPLIT_EMPTY_NAME, "", ICON_NONE);
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ static void node_composite_update_scale(bNodeTree *ntree, bNode *node)
|
||||
}
|
||||
}
|
||||
|
||||
static void node_composit_buts_scale(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_composit_buts_scale(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiItemR(layout, ptr, "space", UI_ITEM_R_SPLIT_EMPTY_NAME, "", ICON_NONE);
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
#include "node_composite_util.hh"
|
||||
|
||||
static void node_cmp_combsep_color_init(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_cmp_combsep_color_init(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
NodeCMPCombSepColor *data = MEM_cnew<NodeCMPCombSepColor>(__func__);
|
||||
data->mode = CMP_NODE_COMBSEP_COLOR_RGB;
|
||||
@@ -75,7 +75,7 @@ static void cmp_node_separate_color_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Float>(N_("Alpha"));
|
||||
}
|
||||
|
||||
static void cmp_node_separate_color_update(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void cmp_node_separate_color_update(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
const NodeCMPCombSepColor *storage = (NodeCMPCombSepColor *)node->storage;
|
||||
node_cmp_combsep_color_label(&node->outputs, (CMPNodeCombSepColorMode)storage->mode);
|
||||
@@ -181,7 +181,7 @@ static void cmp_node_combine_color_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Color>(N_("Image"));
|
||||
}
|
||||
|
||||
static void cmp_node_combine_color_update(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void cmp_node_combine_color_update(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
const NodeCMPCombSepColor *storage = (NodeCMPCombSepColor *)node->storage;
|
||||
node_cmp_combsep_color_label(&node->inputs, (CMPNodeCombSepColorMode)storage->mode);
|
||||
|
||||
@@ -28,7 +28,7 @@ static void cmp_node_sepycca_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Float>(N_("A"));
|
||||
}
|
||||
|
||||
static void node_composit_init_mode_sepycca(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_composit_init_mode_sepycca(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
node->custom1 = 1; /* BLI_YCC_ITU_BT709 */
|
||||
}
|
||||
@@ -115,7 +115,7 @@ static void cmp_node_combycca_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Color>(N_("Image"));
|
||||
}
|
||||
|
||||
static void node_composit_init_mode_combycca(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_composit_init_mode_combycca(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
node->custom1 = 1; /* BLI_YCC_ITU_BT709 */
|
||||
}
|
||||
|
||||
@@ -33,14 +33,14 @@ static void cmp_node_setalpha_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Color>(N_("Image"));
|
||||
}
|
||||
|
||||
static void node_composit_init_setalpha(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_composit_init_setalpha(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
NodeSetAlpha *settings = MEM_cnew<NodeSetAlpha>(__func__);
|
||||
node->storage = settings;
|
||||
settings->mode = CMP_NODE_SETALPHA_MODE_APPLY;
|
||||
}
|
||||
|
||||
static void node_composit_buts_set_alpha(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_composit_buts_set_alpha(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiItemR(layout, ptr, "mode", UI_ITEM_R_SPLIT_EMPTY_NAME, nullptr, ICON_NONE);
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ static void cmp_node_split_viewer_declare(NodeDeclarationBuilder &b)
|
||||
b.add_input<decl::Color>(N_("Image"), "Image_001");
|
||||
}
|
||||
|
||||
static void node_composit_init_splitviewer(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_composit_init_splitviewer(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
ImageUser *iuser = MEM_cnew<ImageUser>(__func__);
|
||||
node->storage = iuser;
|
||||
@@ -39,7 +39,7 @@ static void node_composit_init_splitviewer(bNodeTree *UNUSED(ntree), bNode *node
|
||||
node->id = (ID *)BKE_image_ensure_viewer(G.main, IMA_TYPE_COMPOSITE, "Viewer Node");
|
||||
}
|
||||
|
||||
static void node_composit_buts_splitviewer(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_composit_buts_splitviewer(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiLayout *row, *col;
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ static void cmp_node_sunbeams_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Color>(N_("Image"));
|
||||
}
|
||||
|
||||
static void init(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void init(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
NodeSunBeams *data = MEM_cnew<NodeSunBeams>(__func__);
|
||||
|
||||
@@ -29,7 +29,7 @@ static void init(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
node->storage = data;
|
||||
}
|
||||
|
||||
static void node_composit_buts_sunbeams(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_composit_buts_sunbeams(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiItemR(layout, ptr, "source", UI_ITEM_R_SPLIT_EMPTY_NAME | UI_ITEM_R_EXPAND, "", ICON_NONE);
|
||||
uiItemR(layout,
|
||||
|
||||
@@ -23,7 +23,7 @@ static void cmp_node_switch_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Color>(N_("Image"));
|
||||
}
|
||||
|
||||
static void node_composit_buts_switch(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_composit_buts_switch(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiItemR(layout, ptr, "check", UI_ITEM_R_SPLIT_EMPTY_NAME, nullptr, ICON_NONE);
|
||||
}
|
||||
|
||||
@@ -129,8 +129,8 @@ static void init_switch_view(const bContext *C, PointerRNA *ptr)
|
||||
}
|
||||
|
||||
static void node_composit_buts_switch_view_ex(uiLayout *layout,
|
||||
bContext *UNUSED(C),
|
||||
PointerRNA *UNUSED(ptr))
|
||||
bContext * /*C*/,
|
||||
PointerRNA * /*ptr*/)
|
||||
{
|
||||
uiItemFullO(layout,
|
||||
"NODE_OT_switch_view_update",
|
||||
|
||||
@@ -22,7 +22,7 @@ static void cmp_node_tonemap_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Color>(N_("Image"));
|
||||
}
|
||||
|
||||
static void node_composit_init_tonemap(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_composit_init_tonemap(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
NodeTonemap *ntm = MEM_cnew<NodeTonemap>(__func__);
|
||||
ntm->type = 1;
|
||||
@@ -38,7 +38,7 @@ static void node_composit_init_tonemap(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
node->storage = ntm;
|
||||
}
|
||||
|
||||
static void node_composit_buts_tonemap(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_composit_buts_tonemap(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiLayout *col;
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ static void cmp_node_transform_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Color>(N_("Image"));
|
||||
}
|
||||
|
||||
static void node_composit_buts_transform(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_composit_buts_transform(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiItemR(layout, ptr, "filter_type", UI_ITEM_R_SPLIT_EMPTY_NAME, "", ICON_NONE);
|
||||
}
|
||||
|
||||
@@ -39,13 +39,13 @@ static void cmp_node_translate_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Color>(N_("Image"));
|
||||
}
|
||||
|
||||
static void node_composit_init_translate(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_composit_init_translate(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
NodeTranslateData *data = MEM_cnew<NodeTranslateData>(__func__);
|
||||
node->storage = data;
|
||||
}
|
||||
|
||||
static void node_composit_buts_translate(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_composit_buts_translate(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiItemR(layout, ptr, "use_relative", UI_ITEM_R_SPLIT_EMPTY_NAME, nullptr, ICON_NONE);
|
||||
uiItemR(layout, ptr, "wrap_axis", UI_ITEM_R_SPLIT_EMPTY_NAME, nullptr, ICON_NONE);
|
||||
|
||||
@@ -35,7 +35,7 @@ static void cmp_node_valtorgb_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Float>(N_("Alpha"));
|
||||
}
|
||||
|
||||
static void node_composit_init_valtorgb(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_composit_init_valtorgb(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
node->storage = BKE_colorband_add(true);
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ static void cmp_node_vec_blur_declare(NodeDeclarationBuilder &b)
|
||||
}
|
||||
|
||||
/* custom1: iterations, custom2: max_speed (0 = no_limit). */
|
||||
static void node_composit_init_vecblur(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_composit_init_vecblur(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
NodeBlurData *nbd = MEM_cnew<NodeBlurData>(__func__);
|
||||
node->storage = nbd;
|
||||
@@ -37,7 +37,7 @@ static void node_composit_init_vecblur(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
nbd->fac = 1.0f;
|
||||
}
|
||||
|
||||
static void node_composit_buts_vecblur(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_composit_buts_vecblur(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiLayout *col;
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ static void cmp_node_viewer_declare(NodeDeclarationBuilder &b)
|
||||
b.add_input<decl::Float>(N_("Z")).default_value(1.0f).min(0.0f).max(1.0f);
|
||||
}
|
||||
|
||||
static void node_composit_init_viewer(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_composit_init_viewer(bNodeTree * /*ntree*/, bNode *node)
|
||||
{
|
||||
ImageUser *iuser = MEM_cnew<ImageUser>(__func__);
|
||||
node->storage = iuser;
|
||||
@@ -46,12 +46,12 @@ static void node_composit_init_viewer(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
node->id = (ID *)BKE_image_ensure_viewer(G.main, IMA_TYPE_COMPOSITE, "Viewer Node");
|
||||
}
|
||||
|
||||
static void node_composit_buts_viewer(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_composit_buts_viewer(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiItemR(layout, ptr, "use_alpha", UI_ITEM_R_SPLIT_EMPTY_NAME, nullptr, ICON_NONE);
|
||||
}
|
||||
|
||||
static void node_composit_buts_viewer_ex(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_composit_buts_viewer_ex(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiLayout *col;
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ static void cmp_node_zcombine_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Float>(N_("Z"));
|
||||
}
|
||||
|
||||
static void node_composit_buts_zcombine(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_composit_buts_zcombine(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiLayout *col;
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
#include "NOD_socket_search_link.hh"
|
||||
|
||||
static bool fn_node_poll_default(bNodeType *UNUSED(ntype),
|
||||
static bool fn_node_poll_default(bNodeType * /*ntype*/,
|
||||
bNodeTree *ntree,
|
||||
const char **r_disabled_hint)
|
||||
{
|
||||
|
||||
@@ -26,7 +26,7 @@ static void fn_node_align_euler_to_vector_declare(NodeDeclarationBuilder &b)
|
||||
}
|
||||
|
||||
static void fn_node_align_euler_to_vector_layout(uiLayout *layout,
|
||||
bContext *UNUSED(C),
|
||||
bContext * /*C*/,
|
||||
PointerRNA *ptr)
|
||||
{
|
||||
uiItemR(layout, ptr, "axis", UI_ITEM_R_EXPAND, nullptr, ICON_NONE);
|
||||
@@ -159,7 +159,7 @@ class MF_AlignEulerToVector : public fn::MultiFunction {
|
||||
return signature.build();
|
||||
}
|
||||
|
||||
void call(IndexMask mask, fn::MFParams params, fn::MFContext UNUSED(context)) const override
|
||||
void call(IndexMask mask, fn::MFParams params, fn::MFContext /*context*/) const override
|
||||
{
|
||||
const VArray<float3> &input_rotations = params.readonly_single_input<float3>(0, "Rotation");
|
||||
const VArray<float> &factors = params.readonly_single_input<float>(1, "Factor");
|
||||
|
||||
@@ -22,7 +22,7 @@ static void fn_node_boolean_math_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Bool>(N_("Boolean"));
|
||||
}
|
||||
|
||||
static void fn_node_boolean_math_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void fn_node_boolean_math_layout(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiItemR(layout, ptr, "operation", 0, "", ICON_NONE);
|
||||
}
|
||||
@@ -34,7 +34,7 @@ static void node_boolean_math_update(bNodeTree *ntree, bNode *node)
|
||||
nodeSetSocketAvailability(ntree, sockB, !ELEM(node->custom1, NODE_BOOLEAN_MATH_NOT));
|
||||
}
|
||||
|
||||
static void node_boolean_math_label(const bNodeTree *UNUSED(ntree),
|
||||
static void node_boolean_math_label(const bNodeTree * /*tree*/,
|
||||
const bNode *node,
|
||||
char *label,
|
||||
int maxlen)
|
||||
|
||||
@@ -31,18 +31,18 @@ static void fn_node_combine_color_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Color>(N_("Color"));
|
||||
};
|
||||
|
||||
static void fn_node_combine_color_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void fn_node_combine_color_layout(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiItemR(layout, ptr, "mode", 0, "", ICON_NONE);
|
||||
}
|
||||
|
||||
static void fn_node_combine_color_update(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void fn_node_combine_color_update(bNodeTree * /*tree*/, bNode *node)
|
||||
{
|
||||
const NodeCombSepColor &storage = node_storage(*node);
|
||||
node_combsep_color_label(&node->inputs, (NodeCombSepColorMode)storage.mode);
|
||||
}
|
||||
|
||||
static void fn_node_combine_color_init(bNodeTree *UNUSED(tree), bNode *node)
|
||||
static void fn_node_combine_color_init(bNodeTree * /*tree*/, bNode *node)
|
||||
{
|
||||
NodeCombSepColor *data = MEM_cnew<NodeCombSepColor>(__func__);
|
||||
data->mode = NODE_COMBSEP_COLOR_RGB;
|
||||
|
||||
@@ -44,7 +44,7 @@ static void fn_node_compare_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Bool>(N_("Result"));
|
||||
}
|
||||
|
||||
static void geo_node_compare_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void geo_node_compare_layout(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
const NodeFunctionCompare &data = node_storage(*static_cast<const bNode *>(ptr->data));
|
||||
uiItemR(layout, ptr, "data_type", 0, "", ICON_NONE);
|
||||
@@ -82,7 +82,7 @@ static void node_compare_update(bNodeTree *ntree, bNode *node)
|
||||
data->data_type == SOCK_VECTOR);
|
||||
}
|
||||
|
||||
static void node_compare_init(bNodeTree *UNUSED(tree), bNode *node)
|
||||
static void node_compare_init(bNodeTree * /*tree*/, bNode *node)
|
||||
{
|
||||
NodeFunctionCompare *data = MEM_cnew<NodeFunctionCompare>(__func__);
|
||||
data->operation = NODE_COMPARE_GREATER_THAN;
|
||||
@@ -148,7 +148,7 @@ static void node_compare_gather_link_searches(GatherLinkSearchOpParams ¶ms)
|
||||
}
|
||||
}
|
||||
|
||||
static void node_compare_label(const bNodeTree *UNUSED(ntree),
|
||||
static void node_compare_label(const bNodeTree * /*tree*/,
|
||||
const bNode *node,
|
||||
char *label,
|
||||
int maxlen)
|
||||
|
||||
@@ -21,12 +21,12 @@ static void fn_node_float_to_int_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Int>(N_("Integer"));
|
||||
}
|
||||
|
||||
static void fn_node_float_to_int_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void fn_node_float_to_int_layout(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiItemR(layout, ptr, "rounding_mode", 0, "", ICON_NONE);
|
||||
}
|
||||
|
||||
static void node_float_to_int_label(const bNodeTree *UNUSED(ntree),
|
||||
static void node_float_to_int_label(const bNodeTree * /*tree*/,
|
||||
const bNode *node,
|
||||
char *label,
|
||||
int maxlen)
|
||||
|
||||
@@ -14,7 +14,7 @@ static void fn_node_input_bool_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Bool>(N_("Boolean"));
|
||||
}
|
||||
|
||||
static void fn_node_input_bool_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void fn_node_input_bool_layout(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiLayout *col = uiLayoutColumn(layout, true);
|
||||
uiItemR(col, ptr, "boolean", UI_ITEM_R_EXPAND, IFACE_("Value"), ICON_NONE);
|
||||
@@ -27,7 +27,7 @@ static void fn_node_input_bool_build_multi_function(NodeMultiFunctionBuilder &bu
|
||||
builder.construct_and_set_matching_fn<fn::CustomMF_Constant<bool>>(node_storage->boolean);
|
||||
}
|
||||
|
||||
static void fn_node_input_bool_init(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void fn_node_input_bool_init(bNodeTree * /*tree*/, bNode *node)
|
||||
{
|
||||
NodeInputBool *data = MEM_cnew<NodeInputBool>(__func__);
|
||||
node->storage = data;
|
||||
|
||||
@@ -14,7 +14,7 @@ static void fn_node_input_color_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Color>(N_("Color"));
|
||||
}
|
||||
|
||||
static void fn_node_input_color_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void fn_node_input_color_layout(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiTemplateColorPicker(layout, ptr, "color", true, false, false, true);
|
||||
uiItemR(layout, ptr, "color", UI_ITEM_R_SPLIT_EMPTY_NAME, "", ICON_NONE);
|
||||
@@ -29,7 +29,7 @@ static void fn_node_input_color_build_multi_function(
|
||||
builder.construct_and_set_matching_fn<blender::fn::CustomMF_Constant<ColorGeometry4f>>(color);
|
||||
}
|
||||
|
||||
static void fn_node_input_color_init(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void fn_node_input_color_init(bNodeTree * /*tree*/, bNode *node)
|
||||
{
|
||||
NodeInputColor *data = MEM_cnew<NodeInputColor>(__func__);
|
||||
copy_v4_fl4(data->color, 0.5f, 0.5f, 0.5f, 1.0f);
|
||||
|
||||
@@ -14,7 +14,7 @@ static void fn_node_input_int_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Int>(N_("Integer"));
|
||||
}
|
||||
|
||||
static void fn_node_input_int_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void fn_node_input_int_layout(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiLayout *col = uiLayoutColumn(layout, true);
|
||||
uiItemR(col, ptr, "integer", UI_ITEM_R_EXPAND, "", ICON_NONE);
|
||||
@@ -27,7 +27,7 @@ static void fn_node_input_int_build_multi_function(NodeMultiFunctionBuilder &bui
|
||||
builder.construct_and_set_matching_fn<fn::CustomMF_Constant<int>>(node_storage->integer);
|
||||
}
|
||||
|
||||
static void fn_node_input_int_init(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void fn_node_input_int_init(bNodeTree * /*tree*/, bNode *node)
|
||||
{
|
||||
NodeInputInt *data = MEM_cnew<NodeInputInt>(__func__);
|
||||
node->storage = data;
|
||||
|
||||
@@ -26,7 +26,7 @@ class MF_SpecialCharacters : public fn::MultiFunction {
|
||||
return signature.build();
|
||||
}
|
||||
|
||||
void call(IndexMask mask, fn::MFParams params, fn::MFContext UNUSED(context)) const override
|
||||
void call(IndexMask mask, fn::MFParams params, fn::MFContext /*context*/) const override
|
||||
{
|
||||
MutableSpan<std::string> lb = params.uninitialized_single_output<std::string>(0, "Line Break");
|
||||
MutableSpan<std::string> tab = params.uninitialized_single_output<std::string>(1, "Tab");
|
||||
|
||||
@@ -13,7 +13,7 @@ static void fn_node_input_string_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::String>(N_("String"));
|
||||
}
|
||||
|
||||
static void fn_node_input_string_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void fn_node_input_string_layout(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiItemR(layout, ptr, "string", 0, "", ICON_NONE);
|
||||
}
|
||||
@@ -26,7 +26,7 @@ static void fn_node_input_string_build_multi_function(NodeMultiFunctionBuilder &
|
||||
builder.construct_and_set_matching_fn<fn::CustomMF_Constant<std::string>>(std::move(string));
|
||||
}
|
||||
|
||||
static void fn_node_input_string_init(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void fn_node_input_string_init(bNodeTree * /*tree*/, bNode *node)
|
||||
{
|
||||
node->storage = MEM_callocN(sizeof(NodeInputString), __func__);
|
||||
}
|
||||
@@ -43,9 +43,7 @@ static void fn_node_input_string_free(bNode *node)
|
||||
MEM_freeN(storage);
|
||||
}
|
||||
|
||||
static void fn_node_string_copy(bNodeTree *UNUSED(dest_ntree),
|
||||
bNode *dest_node,
|
||||
const bNode *src_node)
|
||||
static void fn_node_string_copy(bNodeTree * /*dst_ntree*/, bNode *dest_node, const bNode *src_node)
|
||||
{
|
||||
NodeInputString *source_storage = (NodeInputString *)src_node->storage;
|
||||
NodeInputString *destination_storage = (NodeInputString *)MEM_dupallocN(source_storage);
|
||||
|
||||
@@ -14,7 +14,7 @@ static void fn_node_input_vector_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Vector>(N_("Vector"));
|
||||
}
|
||||
|
||||
static void fn_node_input_vector_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void fn_node_input_vector_layout(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiLayout *col = uiLayoutColumn(layout, true);
|
||||
uiItemR(col, ptr, "vector", UI_ITEM_R_EXPAND, "", ICON_NONE);
|
||||
@@ -28,7 +28,7 @@ static void fn_node_input_vector_build_multi_function(NodeMultiFunctionBuilder &
|
||||
builder.construct_and_set_matching_fn<fn::CustomMF_Constant<float3>>(vector);
|
||||
}
|
||||
|
||||
static void fn_node_input_vector_init(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void fn_node_input_vector_init(bNodeTree * /*tree*/, bNode *node)
|
||||
{
|
||||
NodeInputVector *data = MEM_cnew<NodeInputVector>(__func__);
|
||||
node->storage = data;
|
||||
|
||||
@@ -42,12 +42,12 @@ static void fn_node_random_value_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Bool>(N_("Value"), "Value_003").dependent_field();
|
||||
}
|
||||
|
||||
static void fn_node_random_value_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void fn_node_random_value_layout(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiItemR(layout, ptr, "data_type", 0, "", ICON_NONE);
|
||||
}
|
||||
|
||||
static void fn_node_random_value_init(bNodeTree *UNUSED(tree), bNode *node)
|
||||
static void fn_node_random_value_init(bNodeTree * /*tree*/, bNode *node)
|
||||
{
|
||||
NodeRandomValue *data = MEM_cnew<NodeRandomValue>(__func__);
|
||||
data->data_type = CD_PROP_FLOAT;
|
||||
|
||||
@@ -46,7 +46,7 @@ static void fn_node_rotate_euler_update(bNodeTree *ntree, bNode *node)
|
||||
ntree, angle_socket, ELEM(node->custom1, FN_NODE_ROTATE_EULER_TYPE_AXIS_ANGLE));
|
||||
}
|
||||
|
||||
static void fn_node_rotate_euler_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void fn_node_rotate_euler_layout(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiItemR(layout, ptr, "type", UI_ITEM_R_EXPAND, nullptr, ICON_NONE);
|
||||
uiItemR(layout, ptr, "space", UI_ITEM_R_EXPAND, nullptr, ICON_NONE);
|
||||
|
||||
@@ -19,18 +19,18 @@ static void fn_node_separate_color_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Float>(N_("Alpha"));
|
||||
};
|
||||
|
||||
static void fn_node_separate_color_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void fn_node_separate_color_layout(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiItemR(layout, ptr, "mode", 0, "", ICON_NONE);
|
||||
}
|
||||
|
||||
static void fn_node_separate_color_update(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void fn_node_separate_color_update(bNodeTree * /*tree*/, bNode *node)
|
||||
{
|
||||
const NodeCombSepColor &storage = node_storage(*node);
|
||||
node_combsep_color_label(&node->outputs, (NodeCombSepColorMode)storage.mode);
|
||||
}
|
||||
|
||||
static void fn_node_separate_color_init(bNodeTree *UNUSED(tree), bNode *node)
|
||||
static void fn_node_separate_color_init(bNodeTree * /*tree*/, bNode *node)
|
||||
{
|
||||
NodeCombSepColor *data = MEM_cnew<NodeCombSepColor>(__func__);
|
||||
data->mode = NODE_COMBSEP_COLOR_RGB;
|
||||
@@ -56,7 +56,7 @@ class SeparateRGBAFunction : public fn::MultiFunction {
|
||||
return signature.build();
|
||||
}
|
||||
|
||||
void call(IndexMask mask, fn::MFParams params, fn::MFContext UNUSED(context)) const override
|
||||
void call(IndexMask mask, fn::MFParams params, fn::MFContext /*context*/) const override
|
||||
{
|
||||
const VArray<ColorGeometry4f> &colors = params.readonly_single_input<ColorGeometry4f>(0,
|
||||
"Color");
|
||||
@@ -117,7 +117,7 @@ class SeparateHSVAFunction : public fn::MultiFunction {
|
||||
return signature.build();
|
||||
}
|
||||
|
||||
void call(IndexMask mask, fn::MFParams params, fn::MFContext UNUSED(context)) const override
|
||||
void call(IndexMask mask, fn::MFParams params, fn::MFContext /*context*/) const override
|
||||
{
|
||||
const VArray<ColorGeometry4f> &colors = params.readonly_single_input<ColorGeometry4f>(0,
|
||||
"Color");
|
||||
@@ -157,7 +157,7 @@ class SeparateHSLAFunction : public fn::MultiFunction {
|
||||
return signature.build();
|
||||
}
|
||||
|
||||
void call(IndexMask mask, fn::MFParams params, fn::MFContext UNUSED(context)) const override
|
||||
void call(IndexMask mask, fn::MFParams params, fn::MFContext /*context*/) const override
|
||||
{
|
||||
const VArray<ColorGeometry4f> &colors = params.readonly_single_input<ColorGeometry4f>(0,
|
||||
"Color");
|
||||
|
||||
@@ -26,11 +26,8 @@
|
||||
|
||||
bNodeTreeType *ntreeType_Geometry;
|
||||
|
||||
static void geometry_node_tree_get_from_context(const bContext *C,
|
||||
bNodeTreeType *UNUSED(treetype),
|
||||
bNodeTree **r_ntree,
|
||||
ID **r_id,
|
||||
ID **r_from)
|
||||
static void geometry_node_tree_get_from_context(
|
||||
const bContext *C, bNodeTreeType * /*treetype*/, bNodeTree **r_ntree, ID **r_id, ID **r_from)
|
||||
{
|
||||
const Scene *scene = CTX_data_scene(C);
|
||||
ViewLayer *view_layer = CTX_data_view_layer(C);
|
||||
@@ -65,7 +62,7 @@ static void geometry_node_tree_update(bNodeTree *ntree)
|
||||
ntree_update_reroute_nodes(ntree);
|
||||
}
|
||||
|
||||
static void foreach_nodeclass(Scene *UNUSED(scene), void *calldata, bNodeClassCallback func)
|
||||
static void foreach_nodeclass(Scene * /*scene*/, void *calldata, bNodeClassCallback func)
|
||||
{
|
||||
func(calldata, NODE_CLASS_INPUT, N_("Input"));
|
||||
func(calldata, NODE_CLASS_GEOMETRY, N_("Geometry"));
|
||||
@@ -88,7 +85,7 @@ static bool geometry_node_tree_validate_link(eNodeSocketDatatype type_a,
|
||||
return type_a == type_b;
|
||||
}
|
||||
|
||||
static bool geometry_node_tree_socket_type_valid(bNodeTreeType *UNUSED(ntreetype),
|
||||
static bool geometry_node_tree_socket_type_valid(bNodeTreeType * /*treetype*/,
|
||||
bNodeSocketType *socket_type)
|
||||
{
|
||||
return nodeIsStaticSocketType(socket_type) && ELEM(socket_type->type,
|
||||
|
||||
@@ -41,9 +41,7 @@ std::optional<eCustomDataType> node_socket_to_custom_data_type(const bNodeSocket
|
||||
|
||||
} // namespace blender::nodes
|
||||
|
||||
bool geo_node_poll_default(bNodeType *UNUSED(ntype),
|
||||
bNodeTree *ntree,
|
||||
const char **r_disabled_hint)
|
||||
bool geo_node_poll_default(bNodeType * /*ntype*/, bNodeTree *ntree, const char **r_disabled_hint)
|
||||
{
|
||||
if (!STREQ(ntree->idname, "GeometryNodeTree")) {
|
||||
*r_disabled_hint = TIP_("Not a geometry node tree");
|
||||
|
||||
@@ -70,13 +70,13 @@ static void node_declare(NodeDeclarationBuilder &b)
|
||||
.description(N_(total_out_description));
|
||||
}
|
||||
|
||||
static void node_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_layout(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiItemR(layout, ptr, "data_type", 0, "", ICON_NONE);
|
||||
uiItemR(layout, ptr, "domain", 0, "", ICON_NONE);
|
||||
}
|
||||
|
||||
static void node_init(bNodeTree *UNUSED(tree), bNode *node)
|
||||
static void node_init(bNodeTree * /*tree*/, bNode *node)
|
||||
{
|
||||
NodeAccumulateField *data = MEM_cnew<NodeAccumulateField>(__func__);
|
||||
data->data_type = CD_PROP_FLOAT;
|
||||
|
||||
@@ -30,7 +30,7 @@ static void node_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Int>(N_("Attribute"), "Attribute_004").field_source();
|
||||
}
|
||||
|
||||
static void node_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_layout(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiLayoutSetPropSep(layout, true);
|
||||
uiLayoutSetPropDecorate(layout, false);
|
||||
@@ -38,7 +38,7 @@ static void node_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
uiItemR(layout, ptr, "domain", 0, "", ICON_NONE);
|
||||
}
|
||||
|
||||
static void node_init(bNodeTree *UNUSED(tree), bNode *node)
|
||||
static void node_init(bNodeTree * /*tree*/, bNode *node)
|
||||
{
|
||||
NodeGeometryAttributeCapture *data = MEM_cnew<NodeGeometryAttributeCapture>(__func__);
|
||||
data->data_type = CD_PROP_FLOAT;
|
||||
|
||||
@@ -30,12 +30,12 @@ static void node_declare(NodeDeclarationBuilder &b)
|
||||
});
|
||||
}
|
||||
|
||||
static void node_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_layout(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiItemR(layout, ptr, "component", 0, "", ICON_NONE);
|
||||
}
|
||||
|
||||
static void node_init(bNodeTree *UNUSED(tree), bNode *node)
|
||||
static void node_init(bNodeTree * /*tree*/, bNode *node)
|
||||
{
|
||||
node->custom1 = GEO_COMPONENT_TYPE_MESH;
|
||||
}
|
||||
|
||||
@@ -40,13 +40,13 @@ static void node_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Vector>(N_("Variance"), "Variance_001");
|
||||
}
|
||||
|
||||
static void node_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_layout(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiItemR(layout, ptr, "data_type", 0, "", ICON_NONE);
|
||||
uiItemR(layout, ptr, "domain", 0, "", ICON_NONE);
|
||||
}
|
||||
|
||||
static void node_init(bNodeTree *UNUSED(tree), bNode *node)
|
||||
static void node_init(bNodeTree * /*tree*/, bNode *node)
|
||||
{
|
||||
node->custom1 = CD_PROP_FLOAT;
|
||||
node->custom2 = ATTR_DOMAIN_POINT;
|
||||
|
||||
@@ -24,7 +24,7 @@ static void node_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Bool>(N_("Intersecting Edges")).field_source();
|
||||
}
|
||||
|
||||
static void node_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_layout(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiItemR(layout, ptr, "operation", 0, "", ICON_NONE);
|
||||
}
|
||||
@@ -55,7 +55,7 @@ static void node_update(bNodeTree *ntree, bNode *node)
|
||||
}
|
||||
}
|
||||
|
||||
static void node_init(bNodeTree *UNUSED(tree), bNode *node)
|
||||
static void node_init(bNodeTree * /*tree*/, bNode *node)
|
||||
{
|
||||
node->custom1 = GEO_NODE_BOOLEAN_DIFFERENCE;
|
||||
}
|
||||
|
||||
@@ -30,12 +30,12 @@ static void node_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Geometry>(N_("Geometry"));
|
||||
}
|
||||
|
||||
static void node_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_layout(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiItemR(layout, ptr, "transform_space", UI_ITEM_R_EXPAND, nullptr, ICON_NONE);
|
||||
}
|
||||
|
||||
static void node_node_init(bNodeTree *UNUSED(tree), bNode *node)
|
||||
static void node_node_init(bNodeTree * /*tree*/, bNode *node)
|
||||
{
|
||||
NodeGeometryCollectionInfo *data = MEM_cnew<NodeGeometryCollectionInfo>(__func__);
|
||||
data->transform_space = GEO_NODE_TRANSFORM_SPACE_ORIGINAL;
|
||||
|
||||
@@ -42,7 +42,7 @@ class EndpointFieldInput final : public bke::CurvesFieldInput {
|
||||
|
||||
GVArray get_varray_for_context(const bke::CurvesGeometry &curves,
|
||||
const eAttrDomain domain,
|
||||
IndexMask UNUSED(mask)) const final
|
||||
const IndexMask /*mask*/) const final
|
||||
{
|
||||
if (domain != ATTR_DOMAIN_POINT) {
|
||||
return {};
|
||||
|
||||
@@ -27,12 +27,12 @@ static void node_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Geometry>(N_("Mesh"));
|
||||
}
|
||||
|
||||
static void node_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_layout(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiItemR(layout, ptr, "mode", UI_ITEM_R_EXPAND, nullptr, ICON_NONE);
|
||||
}
|
||||
|
||||
static void node_init(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
static void node_init(bNodeTree * /*tree*/, bNode *node)
|
||||
{
|
||||
NodeGeometryCurveFill *data = MEM_cnew<NodeGeometryCurveFill>(__func__);
|
||||
|
||||
|
||||
@@ -32,12 +32,12 @@ static void node_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Geometry>(N_("Curve"));
|
||||
}
|
||||
|
||||
static void node_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_layout(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiItemR(layout, ptr, "mode", UI_ITEM_R_EXPAND, nullptr, ICON_NONE);
|
||||
}
|
||||
|
||||
static void node_init(bNodeTree *UNUSED(tree), bNode *node)
|
||||
static void node_init(bNodeTree * /*tree*/, bNode *node)
|
||||
{
|
||||
NodeGeometryCurveFillet *data = MEM_cnew<NodeGeometryCurveFillet>(__func__);
|
||||
data->mode = GEO_NODE_CURVE_FILLET_BEZIER;
|
||||
|
||||
@@ -16,13 +16,13 @@ static void node_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Bool>(N_("Selection")).field_source();
|
||||
}
|
||||
|
||||
static void node_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_layout(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiItemR(layout, ptr, "mode", UI_ITEM_R_EXPAND, nullptr, ICON_NONE);
|
||||
uiItemR(layout, ptr, "handle_type", 0, "", ICON_NONE);
|
||||
}
|
||||
|
||||
static void node_init(bNodeTree *UNUSED(tree), bNode *node)
|
||||
static void node_init(bNodeTree * /*tree*/, bNode *node)
|
||||
{
|
||||
NodeGeometryCurveSelectHandles *data = MEM_cnew<NodeGeometryCurveSelectHandles>(__func__);
|
||||
|
||||
|
||||
@@ -88,12 +88,12 @@ static void node_declare(NodeDeclarationBuilder &b)
|
||||
.make_available(enable_points);
|
||||
}
|
||||
|
||||
static void node_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_layout(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiItemR(layout, ptr, "mode", UI_ITEM_R_EXPAND, nullptr, ICON_NONE);
|
||||
}
|
||||
|
||||
static void node_init(bNodeTree *UNUSED(tree), bNode *node)
|
||||
static void node_init(bNodeTree */*tree*/, bNode *node)
|
||||
{
|
||||
NodeGeometryCurvePrimitiveArc *data = MEM_cnew<NodeGeometryCurvePrimitiveArc>(__func__);
|
||||
|
||||
|
||||
@@ -41,12 +41,12 @@ static void node_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Geometry>(N_("Curve"));
|
||||
}
|
||||
|
||||
static void node_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_layout(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiItemR(layout, ptr, "mode", UI_ITEM_R_EXPAND, nullptr, ICON_NONE);
|
||||
}
|
||||
|
||||
static void node_init(bNodeTree *UNUSED(tree), bNode *node)
|
||||
static void node_init(bNodeTree * /*tree*/, bNode *node)
|
||||
{
|
||||
NodeGeometryCurvePrimitiveBezierSegment *data =
|
||||
MEM_cnew<NodeGeometryCurvePrimitiveBezierSegment>(__func__);
|
||||
|
||||
@@ -56,12 +56,12 @@ static void node_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Vector>(N_("Center")).make_available(endable_points);
|
||||
}
|
||||
|
||||
static void node_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_layout(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiItemR(layout, ptr, "mode", UI_ITEM_R_EXPAND, nullptr, ICON_NONE);
|
||||
}
|
||||
|
||||
static void node_init(bNodeTree *UNUSED(tree), bNode *node)
|
||||
static void node_init(bNodeTree * /*tree*/, bNode *node)
|
||||
{
|
||||
NodeGeometryCurvePrimitiveCircle *data = MEM_cnew<NodeGeometryCurvePrimitiveCircle>(__func__);
|
||||
|
||||
|
||||
@@ -39,12 +39,12 @@ static void node_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Geometry>(N_("Curve"));
|
||||
}
|
||||
|
||||
static void node_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_layout(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiItemR(layout, ptr, "mode", UI_ITEM_R_EXPAND, nullptr, ICON_NONE);
|
||||
}
|
||||
|
||||
static void node_init(bNodeTree *UNUSED(tree), bNode *node)
|
||||
static void node_init(bNodeTree */*tree*/, bNode *node)
|
||||
{
|
||||
NodeGeometryCurvePrimitiveLine *data = MEM_cnew<NodeGeometryCurvePrimitiveLine>(__func__);
|
||||
|
||||
|
||||
@@ -68,12 +68,12 @@ static void node_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Geometry>(N_("Curve"));
|
||||
}
|
||||
|
||||
static void node_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_layout(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiItemR(layout, ptr, "mode", 0, "", ICON_NONE);
|
||||
}
|
||||
|
||||
static void node_init(bNodeTree *UNUSED(tree), bNode *node)
|
||||
static void node_init(bNodeTree * /*tree*/, bNode *node)
|
||||
{
|
||||
NodeGeometryCurvePrimitiveQuad *data = MEM_cnew<NodeGeometryCurvePrimitiveQuad>(__func__);
|
||||
data->mode = GEO_NODE_CURVE_PRIMITIVE_QUAD_MODE_RECTANGLE;
|
||||
|
||||
@@ -26,12 +26,12 @@ static void node_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Geometry>(N_("Curve"));
|
||||
}
|
||||
|
||||
static void node_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_layout(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiItemR(layout, ptr, "mode", 0, "", ICON_NONE);
|
||||
}
|
||||
|
||||
static void node_init(bNodeTree *UNUSED(tree), bNode *node)
|
||||
static void node_init(bNodeTree * /*tree*/, bNode *node)
|
||||
{
|
||||
NodeGeometryCurveResample *data = MEM_cnew<NodeGeometryCurveResample>(__func__);
|
||||
|
||||
|
||||
@@ -35,12 +35,12 @@ static void node_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Vector>(N_("Normal")).dependent_field();
|
||||
}
|
||||
|
||||
static void node_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_layout(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiItemR(layout, ptr, "mode", UI_ITEM_R_EXPAND, nullptr, ICON_NONE);
|
||||
}
|
||||
|
||||
static void node_type_init(bNodeTree *UNUSED(tree), bNode *node)
|
||||
static void node_type_init(bNodeTree * /*tree*/, bNode *node)
|
||||
{
|
||||
NodeGeometryCurveSample *data = MEM_cnew<NodeGeometryCurveSample>(__func__);
|
||||
data->mode = GEO_NODE_CURVE_SAMPLE_LENGTH;
|
||||
@@ -134,7 +134,7 @@ class SampleFloatSegmentsFunction : public fn::MultiFunction {
|
||||
return signature.build();
|
||||
}
|
||||
|
||||
void call(IndexMask mask, fn::MFParams params, fn::MFContext UNUSED(context)) const override
|
||||
void call(IndexMask mask, fn::MFParams params, fn::MFContext /*context*/) const override
|
||||
{
|
||||
const VArraySpan<float> lengths = params.readonly_single_input<float>(0, "Length");
|
||||
MutableSpan<int> indices = params.uninitialized_single_output<int>(1, "Curve Index");
|
||||
@@ -172,7 +172,7 @@ class SampleCurveFunction : public fn::MultiFunction {
|
||||
return signature.build();
|
||||
}
|
||||
|
||||
void call(IndexMask mask, fn::MFParams params, fn::MFContext UNUSED(context)) const override
|
||||
void call(IndexMask mask, fn::MFParams params, fn::MFContext /*context*/) const override
|
||||
{
|
||||
MutableSpan<float3> sampled_positions = params.uninitialized_single_output_if_required<float3>(
|
||||
2, "Position");
|
||||
|
||||
@@ -20,13 +20,13 @@ static void node_declare(NodeDeclarationBuilder &b)
|
||||
b.add_output<decl::Geometry>(N_("Curve"));
|
||||
}
|
||||
|
||||
static void node_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
|
||||
static void node_layout(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr)
|
||||
{
|
||||
uiItemR(layout, ptr, "mode", UI_ITEM_R_EXPAND, nullptr, ICON_NONE);
|
||||
uiItemR(layout, ptr, "handle_type", 0, "", ICON_NONE);
|
||||
}
|
||||
|
||||
static void node_init(bNodeTree *UNUSED(tree), bNode *node)
|
||||
static void node_init(bNodeTree * /*tree*/, bNode *node)
|
||||
{
|
||||
NodeGeometryCurveSetHandles *data = MEM_cnew<NodeGeometryCurveSetHandles>(__func__);
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user