Make CSGShape follow curve's tilt in Path mode
Fixes #65634.
(cherry picked from commit f476b74ecf
)
This commit is contained in:
parent
00d5da2f09
commit
67f5ec2f2f
|
@ -1933,7 +1933,7 @@ CSGBrush *CSGPolygon3D::_build_brush() {
|
||||||
case PATH_ROTATION_PATH:
|
case PATH_ROTATION_PATH:
|
||||||
break;
|
break;
|
||||||
case PATH_ROTATION_PATH_FOLLOW:
|
case PATH_ROTATION_PATH_FOLLOW:
|
||||||
current_up = curve->sample_baked_up_vector(0);
|
current_up = curve->sample_baked_up_vector(0, true);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2020,7 +2020,7 @@ CSGBrush *CSGPolygon3D::_build_brush() {
|
||||||
case PATH_ROTATION_PATH:
|
case PATH_ROTATION_PATH:
|
||||||
break;
|
break;
|
||||||
case PATH_ROTATION_PATH_FOLLOW:
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue