diff options
author | pidogs <davidelkins12345@gmail.com> | 2023-07-11 16:27:49 -0700 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-08-17 12:01:29 +0200 |
commit | f476b74ecf1d6d2de1896f9cc7e9e5963ab299e2 (patch) | |
tree | ed9939cada45ff957eac833ec30ebfc9cd2df9f6 /modules | |
parent | c5a7462a00a665a72c7c1a746c105e3c1c475c96 (diff) | |
download | redot-engine-f476b74ecf1d6d2de1896f9cc7e9e5963ab299e2.tar.gz |
Make CSGShape follow curve's tilt in Path mode
Fixes #65634.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/csg/csg_shape.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/csg/csg_shape.cpp b/modules/csg/csg_shape.cpp index 4c217dac28..7cafccfdcb 100644 --- a/modules/csg/csg_shape.cpp +++ b/modules/csg/csg_shape.cpp @@ -1933,7 +1933,7 @@ CSGBrush *CSGPolygon3D::_build_brush() { case PATH_ROTATION_PATH: break; case PATH_ROTATION_PATH_FOLLOW: - current_up = curve->sample_baked_up_vector(0); + current_up = curve->sample_baked_up_vector(0, true); break; } @@ -2020,7 +2020,7 @@ CSGBrush *CSGPolygon3D::_build_brush() { case PATH_ROTATION_PATH: break; case PATH_ROTATION_PATH_FOLLOW: - current_up = curve->sample_baked_up_vector(current_offset); + current_up = curve->sample_baked_up_vector(current_offset, true); break; } |