diff options
author | Jacques Lucke <jacques@blender.org> | 2022-06-03 17:01:43 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2022-06-03 17:02:04 +0300 |
commit | 5d9ebea15d18e16f05067f85a44142fd1f823a42 (patch) | |
tree | 2cf92d43edf12b42c79aa3fc7c181450ef68781f | |
parent | 12722bd354589058a713cf875fa291ed129d6bb5 (diff) |
Cleanup: remove unused code
-rw-r--r-- | source/blender/editors/sculpt_paint/curves_sculpt_comb.cc | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/source/blender/editors/sculpt_paint/curves_sculpt_comb.cc b/source/blender/editors/sculpt_paint/curves_sculpt_comb.cc index 408eea09976..71f08cce8ff 100644 --- a/source/blender/editors/sculpt_paint/curves_sculpt_comb.cc +++ b/source/blender/editors/sculpt_paint/curves_sculpt_comb.cc @@ -96,10 +96,6 @@ struct CombOperationExecutor { Vector<int64_t> selected_curve_indices_; IndexMask curve_selection_; - const Object *surface_ob_ = nullptr; - const Mesh *surface_ = nullptr; - Span<MLoopTri> surface_looptris_; - float2 brush_pos_prev_re_; float2 brush_pos_re_; float2 brush_pos_diff_re_; @@ -110,8 +106,6 @@ struct CombOperationExecutor { float4x4 surface_to_world_mat_; float4x4 world_to_surface_mat_; - BVHTreeFromMesh surface_bvh_; - CombOperationExecutor(const bContext &C) : ctx_(C) { } @@ -149,22 +143,6 @@ struct CombOperationExecutor { brush_pos_diff_re_ = brush_pos_re_ - brush_pos_prev_re_; brush_pos_diff_length_re_ = math::length(brush_pos_diff_re_); - surface_ob_ = curves_id_->surface; - if (surface_ob_ != nullptr) { - surface_ = static_cast<const Mesh *>(surface_ob_->data); - surface_looptris_ = {BKE_mesh_runtime_looptri_ensure(surface_), - BKE_mesh_runtime_looptri_len(surface_)}; - surface_to_world_mat_ = surface_ob_->obmat; - world_to_surface_mat_ = surface_to_world_mat_.inverted(); - BKE_bvhtree_from_mesh_get(&surface_bvh_, surface_, BVHTREE_FROM_LOOPTRI, 2); - } - - BLI_SCOPED_DEFER([&]() { - if (surface_ob_ != nullptr) { - free_bvhtree_from_mesh(&surface_bvh_); - } - }); - if (stroke_extension.is_first) { if (falloff_shape_ == PAINT_FALLOFF_SHAPE_SPHERE) { this->initialize_spherical_brush_reference_point(); |