diff options
author | Jacques Lucke <jacques@blender.org> | 2022-06-07 15:20:39 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2022-06-07 15:21:02 +0300 |
commit | f49efed9533bf70cdc863c9bf6e136df0d99ec91 (patch) | |
tree | c397e02a8e30a88ce075aad82afe179f21fccfef /source/blender/editors/sculpt_paint/curves_sculpt_intern.hh | |
parent | 3b7e314a2869624a0d42bbeb82d7d99f3056dba5 (diff) |
Curves: fix transforms in Add brush
Symmetry should be applied in the space of the curves object,
not in the space of the surface object.
Diffstat (limited to 'source/blender/editors/sculpt_paint/curves_sculpt_intern.hh')
-rw-r--r-- | source/blender/editors/sculpt_paint/curves_sculpt_intern.hh | 8 |
1 files changed, 8 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..5c926b1a740 100644 --- a/source/blender/editors/sculpt_paint/curves_sculpt_intern.hh +++ b/source/blender/editors/sculpt_paint/curves_sculpt_intern.hh @@ -97,6 +97,14 @@ IndexMask retrieve_selected_curves(const Curves &curves_id, Vector<int64_t> &r_i void move_last_point_and_resample(MutableSpan<float3> positions, const float3 &new_last_position); +float3 compute_surface_point_normal(const MLoopTri &looptri, + const float3 &bary_coord, + const Span<float3> corner_normals); + +float3 compute_bary_coord_in_triangle(const Mesh &mesh, + const MLoopTri &looptri, + const float3 &position); + class CurvesSculptCommonContext { public: const Depsgraph *depsgraph = nullptr; |