diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-08-17 12:28:16 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-08-17 12:28:16 +0200 |
commit | 5aaaf76a87c763bd1f207528ca53e919d0cc3937 (patch) | |
tree | d3f5ad786372c6921db353f6b6ea1cac899e75ab /modules/csg/csg_shape.cpp | |
parent | d3b69c09ad7f0d4d7759979e3c3a13fd8ded5618 (diff) | |
parent | f476b74ecf1d6d2de1896f9cc7e9e5963ab299e2 (diff) | |
download | redot-engine-5aaaf76a87c763bd1f207528ca53e919d0cc3937.tar.gz |
Merge pull request #79355 from pidogs/master
Make CSGShape follow curve's tilt in Path mode
Diffstat (limited to 'modules/csg/csg_shape.cpp')
-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; } |