mirror of
https://github.com/godotengine/godot.git
synced 2025-01-22 18:43:29 -05:00
Merge pull request #100826 from Lielay9/csg-spin-360
Fix gaps in CSGPolygon3D spin mode at 360 degrees
This commit is contained in:
commit
77eb92f8f3
1 changed files with 5 additions and 1 deletions
|
@ -2255,7 +2255,11 @@ CSGBrush *CSGPolygon3D::_build_brush() {
|
|||
current_xform.translate_local(Vector3(0, 0, -depth));
|
||||
} break;
|
||||
case MODE_SPIN: {
|
||||
current_xform.rotate(Vector3(0, 1, 0), spin_step);
|
||||
if (end_count == 0 && x0 == extrusions - 1) {
|
||||
current_xform = base_xform;
|
||||
} else {
|
||||
current_xform.rotate(Vector3(0, 1, 0), spin_step);
|
||||
}
|
||||
} break;
|
||||
case MODE_PATH: {
|
||||
double previous_offset = x0 * extrusion_step;
|
||||
|
|
Loading…
Reference in a new issue