19 b.use_custom_socket_order();
20 b.allow_any_socket_order();
21 b.add_default_layout();
23 .supported_type(GeometryComponent::Type::GreasePencil);
24 b.add_output<
decl::Geometry>(
"Grease Pencil").propagate_all().align_with_previous();
49 params.set_output(
"Grease Pencil", std::move(geometry_set));
67 ntype.
ui_name =
"Set Grease Pencil Depth";
Low-level operations for grease pencil.
#define NODE_CLASS_GEOMETRY
constexpr int NODE_DEFAULT_MAX_WIDTH
#define SET_FLAG_FROM_TEST(value, test, flag)
@ GREASE_PENCIL_STROKE_ORDER_3D
#define NOD_REGISTER_NODE(REGISTER_FUNC)
#define NOD_inline_enum_accessors(member)
void node_type_size(bNodeType &ntype, int width, int minwidth, int maxwidth)
void node_register_type(bNodeType &ntype)
static void node_geo_exec(GeoNodeExecParams params)
static void node_declare(NodeDeclarationBuilder &b)
static void node_rna(StructRNA *srna)
static void node_init(bNodeTree *, bNode *node)
static void node_register()
static void node_layout(uiLayout *layout, bContext *, PointerRNA *ptr)
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, std::string idname, const std::optional< int16_t > legacy_type)
const EnumPropertyItem rna_enum_stroke_depth_order_items[]
void modify_geometry_sets(ForeachSubGeometryCallback callback)
std::string ui_description
void(* initfunc)(bNodeTree *ntree, bNode *node)
NodeGeometryExecFunction geometry_node_execute
void(* draw_buttons)(uiLayout *, bContext *C, PointerRNA *ptr)
NodeDeclareFunction declare
void prop(PointerRNA *ptr, PropertyRNA *prop, int index, int value, eUI_Item_Flag flag, std::optional< blender::StringRef > name_opt, int icon, std::optional< blender::StringRef > placeholder=std::nullopt)