Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/curves_sculpt_slide.cc
| Show First 20 Lines • Show All 151 Lines • ▼ Show 20 Lines | void execute(SlideOperation &self, const bContext &C, const StrokeExtension &stroke_extension) | ||||
| const StringRefNull uv_map_name = curves_id_orig_->surface_uv_map; | const StringRefNull uv_map_name = curves_id_orig_->surface_uv_map; | ||||
| curves_sculpt_ = ctx_.scene->toolsettings->curves_sculpt; | curves_sculpt_ = ctx_.scene->toolsettings->curves_sculpt; | ||||
| brush_ = BKE_paint_brush_for_read(&curves_sculpt_->paint); | brush_ = BKE_paint_brush_for_read(&curves_sculpt_->paint); | ||||
| 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); | ||||
| curve_factors_ = get_curves_selection(*curves_id_orig_); | curve_factors_ = curves_orig_->attributes().lookup_or_default( | ||||
| curve_selection_ = retrieve_selected_curves(*curves_id_orig_, selected_curve_indices_); | ".selection", ATTR_DOMAIN_CURVE, 1.0f); | ||||
| curve_selection_ = curves::retrieve_selected_curves(*curves_id_orig_, selected_curve_indices_); | |||||
| brush_pos_re_ = stroke_extension.mouse_position; | brush_pos_re_ = stroke_extension.mouse_position; | ||||
| transforms_ = CurvesSurfaceTransforms(*curves_ob_orig_, curves_id_orig_->surface); | transforms_ = CurvesSurfaceTransforms(*curves_ob_orig_, curves_id_orig_->surface); | ||||
| surface_ob_orig_ = curves_id_orig_->surface; | surface_ob_orig_ = curves_id_orig_->surface; | ||||
| surface_orig_ = static_cast<Mesh *>(surface_ob_orig_->data); | surface_orig_ = static_cast<Mesh *>(surface_ob_orig_->data); | ||||
| if (surface_orig_->totpoly == 0) { | if (surface_orig_->totpoly == 0) { | ||||
| ▲ Show 20 Lines • Show All 320 Lines • Show Last 20 Lines | |||||