Skip to content

Commit

Permalink
Merge pull request #79355 from pidogs/master
Browse files Browse the repository at this point in the history
Make CSGShape follow curve's tilt in Path mode
  • Loading branch information
akien-mga committed Aug 17, 2023
2 parents d3b69c0 + f476b74 commit 5aaaf76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/csg/csg_shape.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 5aaaf76

Please sign in to comment.