Refactor: Organize and fixup functions in sculpt_trim.cc
commit2582664f67632b7699182b141986c5a5476939d8
authorSean Kim <SeanCTKim@protonmail.com>
Thu, 11 Apr 2024 15:53:46 +0000 (11 17:53 +0200)
committerHans Goudey <hooglyboogly@noreply.localhost>
Thu, 11 Apr 2024 15:53:46 +0000 (11 17:53 +0200)
tree5e76b594156cd816cb25973ea52d0abd1d3593cf
parent9f89cc50726bc26024149b5274ba344d816394c2
Refactor: Organize and fixup functions in sculpt_trim.cc

This PR performs the following refactors in sculpt_trim.cc:

* Remove `depth_front` and `depth_back` as `struct` properties, as they
  are only used for generating the Mesh
* Moves the `calculate_depth` call into the `generate_geometry` step as
  the latter is dependent on data from the former already
* Reorganize the methods so the overall file reads better.
* Minor comment nits and additions

Pull Request: https://projects.blender.org/blender/blender/pulls/120331
source/blender/editors/sculpt_paint/sculpt_trim.cc