39 for (
const int layer_index : grease_pencil.layers().index_range()) {
40 Drawing *drawing = grease_pencil.get_eval_drawing(grease_pencil.layer(layer_index));
41 if (drawing ==
nullptr) {
69 params.set_output(
"Curve", std::move(geometry_set));
Low-level operations for curves.
Low-level operations for grease pencil.
#define NODE_CLASS_GEOMETRY
#define NOD_REGISTER_NODE(REGISTER_FUNC)
bke::CurvesGeometry & strokes_for_write()
local_group_size(16, 16) .push_constant(Type b
bool try_capture_field_on_geometry(MutableAttributeAccessor attributes, const fn::FieldContext &field_context, const StringRef attribute_id, AttrDomain domain, const fn::Field< bool > &selection, const fn::GField &field)
void node_register_type(bNodeType *ntype)
static void set_curve_tilt(bke::CurvesGeometry &curves, const fn::FieldContext &field_context, const Field< bool > &selection, const Field< float > &tilt)
static void node_geo_exec(GeoNodeExecParams params)
static void node_declare(NodeDeclarationBuilder &b)
static void set_grease_pencil_tilt(GreasePencil &grease_pencil, const Field< bool > &selection, const Field< float > &tilt)
static void node_register()
void geo_node_type_base(blender::bke::bNodeType *ntype, int type, const char *name, short nclass)
Curves * get_curves_for_write()
void modify_geometry_sets(ForeachSubGeometryCallback callback)
GreasePencil * get_grease_pencil_for_write()
NodeGeometryExecFunction geometry_node_execute
NodeDeclareFunction declare