diff options
author | Jacques Lucke <jacques@blender.org> | 2022-06-03 14:39:31 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2022-06-03 14:39:59 +0300 |
commit | 3b51d9065c8aced32b3d506b55422d471bd4f7ff (patch) | |
tree | 69375f6dd6f95b7298676b92b517fcd6b9a58675 /source/blender/editors/sculpt_paint/curves_sculpt_intern.hh | |
parent | 5c6053ccb1cbbe57d5a9d0aa33eadc6cb3e9dc9a (diff) |
Cleanup: deduplicate retrieving data from context in curves brushes
Diffstat (limited to 'source/blender/editors/sculpt_paint/curves_sculpt_intern.hh')
-rw-r--r-- | source/blender/editors/sculpt_paint/curves_sculpt_intern.hh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/curves_sculpt_intern.hh b/source/blender/editors/sculpt_paint/curves_sculpt_intern.hh index 3635ad84c36..4c45f49b83a 100644 --- a/source/blender/editors/sculpt_paint/curves_sculpt_intern.hh +++ b/source/blender/editors/sculpt_paint/curves_sculpt_intern.hh @@ -95,4 +95,15 @@ VArray<float> get_point_selection(const Curves &curves_id); */ IndexMask retrieve_selected_curves(const Curves &curves_id, Vector<int64_t> &r_indices); +class CurvesSculptCommonContext { + public: + const Depsgraph *depsgraph = nullptr; + const Scene *scene = nullptr; + ARegion *region = nullptr; + const View3D *v3d = nullptr; + const RegionView3D *rv3d = nullptr; + + CurvesSculptCommonContext(const bContext &C); +}; + } // namespace blender::ed::sculpt_paint |