Skip to content

Commit

Permalink
Make CSGShape follow curve's tilt in Path mode
Browse files Browse the repository at this point in the history
  • Loading branch information
pidogs authored and akien-mga committed Aug 17, 2023
1 parent c5a7462 commit f476b74
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 f476b74

Please sign in to comment.