18 b.use_custom_socket_order();
19 b.allow_any_socket_order();
22 b.add_output<
decl::Bool>(
"Show").align_with_previous();
33 inputs_.append_as(
"Show", type, lf::ValueUsage::Used);
34 inputs_.append_as(
"Message", type);
41 const bool show = show_variant.
get<
bool>();
43 params.set_output(0, show_variant);
48 if (!message_variant) {
52 std::string message = message_variant->
extract<std::string>();
55 context.local_user_data);
58 tree_logger->node_warnings.append(
59 *tree_logger->allocator,
63 params.set_output(0, show_variant);
103 using namespace node_geo_warning_cc;
105 return std::make_unique<LazyFunctionForWarningNode>(node);
#define NODE_CLASS_INTERFACE
#define NOD_REGISTER_NODE(REGISTER_FUNC)
#define NOD_inline_enum_accessors(member)
void uiLayoutSetPropSep(uiLayout *layout, bool is_sep)
void uiLayoutSetPropDecorate(uiLayout *layout, bool is_sep)
void uiItemR(uiLayout *layout, PointerRNA *ptr, const char *propname, eUI_Item_Flag flag, const char *name, int icon)
static const CPPType & get()
Vector< Output > outputs_
void execute_impl(lf::Params ¶ms, const lf::Context &context) const override
LazyFunctionForWarningNode(const bNode &node)
local_group_size(16, 16) .push_constant(Type b
void node_register_type(bNodeType *ntype)
static void node_register()
static void node_rna(StructRNA *srna)
static void node_declare(NodeDeclarationBuilder &b)
static void node_layout(uiLayout *layout, bContext *, PointerRNA *ptr)
std::unique_ptr< LazyFunction > get_warning_node_lazy_function(const bNode &node)
PropertyRNA * RNA_def_node_enum(StructRNA *srna, const char *identifier, const char *ui_name, const char *ui_description, const EnumPropertyItem *static_items, const EnumRNAAccessors accessors, std::optional< int > default_value, const EnumPropertyItemFunc item_func, const bool allow_animation)
void geo_node_type_base(blender::bke::bNodeType *ntype, int type, const char *name, short nclass)
const EnumPropertyItem rna_enum_node_warning_type_items[]
void(* draw_buttons)(uiLayout *, bContext *C, PointerRNA *ptr)
NodeDeclareFunction declare
geo_eval_log::GeoTreeLogger * try_get_tree_logger(const GeoNodesLFUserData &user_data) const