Make CSGShape follow curve's tilt in Path mode

Fixes #65634.
This commit is contained in:
pidogs 2023-07-11 16:27:49 -07:00 committed by Rémi Verschelde
parent c5a7462a00
commit f476b74ecf
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}