From 67f5ec2f2fe4feff2791deaf52715e012dbbc59f Mon Sep 17 00:00:00 2001 From: pidogs Date: Tue, 11 Jul 2023 16:27:49 -0700 Subject: [PATCH] Make CSGShape follow curve's tilt in Path mode Fixes #65634. (cherry picked from commit f476b74ecf1d6d2de1896f9cc7e9e5963ab299e2) --- modules/csg/csg_shape.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/csg/csg_shape.cpp b/modules/csg/csg_shape.cpp index c241f1cabdf..66ce28893ca 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; }