2023-08-16 00:20:26 +10:00
|
|
|
/* SPDX-FileCopyrightText: 2006 Blender Authors
|
2023-05-31 16:19:06 +02:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
2007-03-24 06:57:29 +00:00
|
|
|
|
2019-02-18 08:08:12 +11:00
|
|
|
/** \file
|
|
|
|
|
* \ingroup nodes
|
2011-02-27 20:13:22 +00:00
|
|
|
*/
|
|
|
|
|
|
2012-02-17 18:59:41 +00:00
|
|
|
#pragma once
|
2007-03-24 06:57:29 +00:00
|
|
|
|
2025-01-14 14:39:36 +01:00
|
|
|
#include <optional>
|
|
|
|
|
|
2025-01-26 20:08:04 +01:00
|
|
|
#include "DNA_ID.h" // IWYU pragma: export
|
2007-03-24 06:57:29 +00:00
|
|
|
#include "DNA_node_types.h"
|
|
|
|
|
|
2025-01-09 20:03:08 +01:00
|
|
|
#include "BKE_node_legacy_types.hh" // IWYU pragma: export
|
|
|
|
|
|
2025-01-26 20:08:04 +01:00
|
|
|
#include "node_composite_register.hh" // IWYU pragma: export
|
|
|
|
|
#include "node_util.hh" // IWYU pragma: export
|
2007-03-25 16:05:46 +00:00
|
|
|
|
2025-01-26 20:08:04 +01:00
|
|
|
#include "NOD_composite.hh" // IWYU pragma: export
|
|
|
|
|
#include "NOD_socket.hh" // IWYU pragma: export
|
|
|
|
|
#include "NOD_socket_declarations.hh" // IWYU pragma: export
|
2011-09-20 04:38:59 +00:00
|
|
|
|
2012-08-21 11:53:09 +00:00
|
|
|
#define CMP_SCALE_MAX 12000
|
|
|
|
|
|
2024-05-13 16:07:12 +02:00
|
|
|
bool cmp_node_poll_default(const blender::bke::bNodeType *ntype,
|
2023-08-03 01:11:28 +02:00
|
|
|
const bNodeTree *ntree,
|
2021-09-28 15:29:16 -04:00
|
|
|
const char **r_disabled_hint);
|
2023-08-03 01:11:28 +02:00
|
|
|
void cmp_node_update_default(bNodeTree *ntree, bNode *node);
|
2025-01-14 14:39:36 +01:00
|
|
|
void cmp_node_type_base(blender::bke::bNodeType *ntype,
|
|
|
|
|
std::string idname,
|
|
|
|
|
std::optional<int16_t> legacy_type = std::nullopt);
|