From f27c1327b8ad5b7235deb41bdf4ef7be96e4ac4c Mon Sep 17 00:00:00 2001 From: Sean Kim Date: Wed, 4 Sep 2024 22:22:36 +0200 Subject: [PATCH] Fix #127130: Snake Hook applies twist continually Caused by d42aec3cf78c7d8631e9cb5cf47afe6d0310e05f The prior cleanup missed setting the optionals into an invalid state when the original code would set the `valid` flag to false. Pull Request: https://projects.blender.org/blender/blender/pulls/127158 --- source/blender/editors/sculpt_paint/sculpt.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/blender/editors/sculpt_paint/sculpt.cc b/source/blender/editors/sculpt_paint/sculpt.cc index 305d5825dc3..2e06dc71d23 100644 --- a/source/blender/editors/sculpt_paint/sculpt.cc +++ b/source/blender/editors/sculpt_paint/sculpt.cc @@ -4548,6 +4548,8 @@ static void brush_delta_update(const Depsgraph &depsgraph, } /* Handle 'rake' */ + cache->rake_rotation = std::nullopt; + cache->rake_rotation_symm = std::nullopt; invert_m4_m4(imat, ob.object_to_world().ptr()); mul_mat3_m4_v3(imat, grab_location);