Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/curves_sculpt_pinch.cc
| Show First 20 Lines • Show All 99 Lines • ▼ Show 20 Lines | void execute(PinchOperation &self, const bContext &C, const StrokeExtension &stroke_extension) | ||||
| brush_radius_base_re_ = BKE_brush_size_get(ctx_.scene, brush_); | brush_radius_base_re_ = BKE_brush_size_get(ctx_.scene, brush_); | ||||
| brush_radius_factor_ = brush_radius_factor(*brush_, stroke_extension); | brush_radius_factor_ = brush_radius_factor(*brush_, stroke_extension); | ||||
| brush_strength_ = BKE_brush_alpha_get(ctx_.scene, brush_); | brush_strength_ = BKE_brush_alpha_get(ctx_.scene, brush_); | ||||
| invert_factor_ = self_->invert_pinch_ ? -1.0f : 1.0f; | invert_factor_ = self_->invert_pinch_ ? -1.0f : 1.0f; | ||||
| transforms_ = CurvesSurfaceTransforms(*object_, curves_id_->surface); | transforms_ = CurvesSurfaceTransforms(*object_, curves_id_->surface); | ||||
| point_factors_ = get_point_selection(*curves_id_); | point_factors_ = curves_->attributes().lookup_or_default<float>( | ||||
| curve_selection_ = retrieve_selected_curves(*curves_id_, selected_curve_indices_); | ".selection", ATTR_DOMAIN_POINT, 1.0f); | ||||
| curve_selection_ = curves::retrieve_selected_curves(*curves_id_, selected_curve_indices_); | |||||
| brush_pos_re_ = stroke_extension.mouse_position; | brush_pos_re_ = stroke_extension.mouse_position; | ||||
| const eBrushFalloffShape falloff_shape = static_cast<eBrushFalloffShape>( | const eBrushFalloffShape falloff_shape = static_cast<eBrushFalloffShape>( | ||||
| brush_->falloff_shape); | brush_->falloff_shape); | ||||
| if (stroke_extension.is_first) { | if (stroke_extension.is_first) { | ||||
| this->initialize_segment_lengths(); | this->initialize_segment_lengths(); | ||||
| ▲ Show 20 Lines • Show All 208 Lines • Show Last 20 Lines | |||||