[Bf-blender-cvs] [3b7e314a286] master: Cleanup: remove dead code

Jacques Lucke noreply at git.blender.org
Tue Jun 7 14:21:14 CEST 2022


Commit: 3b7e314a2869624a0d42bbeb82d7d99f3056dba5
Author: Jacques Lucke
Date:   Tue Jun 7 14:19:22 2022 +0200
Branches: master
https://developer.blender.org/rB3b7e314a2869624a0d42bbeb82d7d99f3056dba5

Cleanup: remove dead code

===================================================================

M	source/blender/editors/sculpt_paint/curves_sculpt_comb.cc

===================================================================

diff --git a/source/blender/editors/sculpt_paint/curves_sculpt_comb.cc b/source/blender/editors/sculpt_paint/curves_sculpt_comb.cc
index 71f08cce8ff..ae0a512c5ee 100644
--- a/source/blender/editors/sculpt_paint/curves_sculpt_comb.cc
+++ b/source/blender/editors/sculpt_paint/curves_sculpt_comb.cc
@@ -99,12 +99,9 @@ struct CombOperationExecutor {
   float2 brush_pos_prev_re_;
   float2 brush_pos_re_;
   float2 brush_pos_diff_re_;
-  float brush_pos_diff_length_re_;
 
   float4x4 curves_to_world_mat_;
   float4x4 world_to_curves_mat_;
-  float4x4 surface_to_world_mat_;
-  float4x4 world_to_surface_mat_;
 
   CombOperationExecutor(const bContext &C) : ctx_(C)
   {
@@ -141,7 +138,6 @@ struct CombOperationExecutor {
     brush_pos_prev_re_ = self_->brush_pos_last_re_;
     brush_pos_re_ = stroke_extension.mouse_position;
     brush_pos_diff_re_ = brush_pos_re_ - brush_pos_prev_re_;
-    brush_pos_diff_length_re_ = math::length(brush_pos_diff_re_);
 
     if (stroke_extension.is_first) {
       if (falloff_shape_ == PAINT_FALLOFF_SHAPE_SPHERE) {



More information about the Bf-blender-cvs mailing list