Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/curves_sculpt_comb.cc
| Show First 20 Lines • Show All 126 Lines • ▼ Show 20 Lines | void execute(CombOperation &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_ = brush_strength_get(*ctx_.scene, *brush_, stroke_extension); | brush_strength_ = brush_strength_get(*ctx_.scene, *brush_, stroke_extension); | ||||
| falloff_shape_ = static_cast<eBrushFalloffShape>(brush_->falloff_shape); | falloff_shape_ = static_cast<eBrushFalloffShape>(brush_->falloff_shape); | ||||
| transforms_ = CurvesSurfaceTransforms(*curves_ob_orig_, curves_id_orig_->surface); | transforms_ = CurvesSurfaceTransforms(*curves_ob_orig_, curves_id_orig_->surface); | ||||
| point_factors_ = get_point_selection(*curves_id_orig_); | point_factors_ = curves_orig_->attributes().lookup_or_default<float>( | ||||
| curve_selection_ = retrieve_selected_curves(*curves_id_orig_, selected_curve_indices_); | ".selection", ATTR_DOMAIN_POINT, 1.0f); | ||||
| curve_selection_ = curves::retrieve_selected_curves(*curves_id_orig_, selected_curve_indices_); | |||||
| brush_pos_prev_re_ = self_->brush_pos_last_re_; | brush_pos_prev_re_ = self_->brush_pos_last_re_; | ||||
| brush_pos_re_ = stroke_extension.mouse_position; | brush_pos_re_ = stroke_extension.mouse_position; | ||||
| brush_pos_diff_re_ = brush_pos_re_ - brush_pos_prev_re_; | brush_pos_diff_re_ = brush_pos_re_ - brush_pos_prev_re_; | ||||
| if (stroke_extension.is_first) { | if (stroke_extension.is_first) { | ||||
| if (falloff_shape_ == PAINT_FALLOFF_SHAPE_SPHERE) { | if (falloff_shape_ == PAINT_FALLOFF_SHAPE_SPHERE) { | ||||
| this->initialize_spherical_brush_reference_point(); | this->initialize_spherical_brush_reference_point(); | ||||
| ▲ Show 20 Lines • Show All 267 Lines • Show Last 20 Lines | |||||