Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/curves_sculpt_grow_shrink.cc
| Show First 20 Lines • Show All 274 Lines • ▼ Show 20 Lines | void execute(CurvesEffectOperation &self, | ||||
| object_ = CTX_data_active_object(&C); | object_ = CTX_data_active_object(&C); | ||||
| curves_id_ = static_cast<Curves *>(object_->data); | curves_id_ = static_cast<Curves *>(object_->data); | ||||
| curves_ = &CurvesGeometry::wrap(curves_id_->geometry); | curves_ = &CurvesGeometry::wrap(curves_id_->geometry); | ||||
| if (curves_->curves_num() == 0) { | if (curves_->curves_num() == 0) { | ||||
| return; | return; | ||||
| } | } | ||||
| curve_selection_factors_ = get_curves_selection(*curves_id_); | curve_selection_factors_ = curves_->attributes().lookup_or_default( | ||||
| curve_selection_ = retrieve_selected_curves(*curves_id_, selected_curve_indices_); | ".selection", ATTR_DOMAIN_CURVE, 1.0f); | ||||
| curve_selection_ = curves::retrieve_selected_curves(*curves_id_, selected_curve_indices_); | |||||
| const CurvesSculpt &curves_sculpt = *ctx_.scene->toolsettings->curves_sculpt; | const CurvesSculpt &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_strength_ = brush_strength_get(*ctx_.scene, *brush_, stroke_extension); | brush_strength_ = brush_strength_get(*ctx_.scene, *brush_, 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); | ||||
| ▲ Show 20 Lines • Show All 244 Lines • Show Last 20 Lines | |||||