diff options
author | Jacques Lucke <jacques@blender.org> | 2022-06-17 17:57:20 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2022-06-17 17:57:36 +0300 |
commit | 0d43117a40c5f330264fbf032abb3ff2f71e3544 (patch) | |
tree | fdc29d3183d5ad1b0723f2dcae6184605108af51 /source/blender/editors/sculpt_paint/curves_sculpt_intern.hh | |
parent | 23662a9a848bf6b4a20043e430970d068fe2c28d (diff) |
Cleanup: deduplicate generating transform matrices 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 | 13 |
1 files changed, 13 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 4aaf6671cdb..ce84d94fbd5 100644 --- a/source/blender/editors/sculpt_paint/curves_sculpt_intern.hh +++ b/source/blender/editors/sculpt_paint/curves_sculpt_intern.hh @@ -108,4 +108,17 @@ class CurvesSculptCommonContext { CurvesSculptCommonContext(const bContext &C); }; +struct CurvesSculptTransforms { + float4x4 curves_to_world; + float4x4 curves_to_surface; + float4x4 world_to_curves; + float4x4 world_to_surface; + float4x4 surface_to_world; + float4x4 surface_to_curves; + float4x4 surface_to_curves_normal; + + CurvesSculptTransforms() = default; + CurvesSculptTransforms(const Object &curves_ob, const Object *surface_ob); +}; + } // namespace blender::ed::sculpt_paint |