GPv3: Blur Attribute node
Original patch (!113444) by Falk David with changes by me. Reviewed as part of !113598.
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#include "BKE_attribute_math.hh"
|
||||
#include "BKE_curves.hh"
|
||||
#include "BKE_geometry_fields.hh"
|
||||
#include "BKE_grease_pencil.hh"
|
||||
#include "BKE_mesh.hh"
|
||||
#include "BKE_mesh_mapping.hh"
|
||||
|
||||
@@ -441,8 +442,9 @@ class BlurAttributeFieldInput final : public bke::GeometryFieldInput {
|
||||
}
|
||||
break;
|
||||
case GeometryComponent::Type::Curve:
|
||||
case GeometryComponent::Type::GreasePencil:
|
||||
if (context.domain() == ATTR_DOMAIN_POINT) {
|
||||
if (const bke::CurvesGeometry *curves = context.curves()) {
|
||||
if (const bke::CurvesGeometry *curves = context.curves_or_strokes()) {
|
||||
result_buffer = blur_on_curves(
|
||||
*curves, iterations_, neighbor_weights, buffer_a, buffer_b);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user