diff --git a/scripts/d3d_path_extrude/d3d_path_extrude.gml b/scripts/d3d_path_extrude/d3d_path_extrude.gml index 2008a0e61..9797b32dd 100644 --- a/scripts/d3d_path_extrude/d3d_path_extrude.gml +++ b/scripts/d3d_path_extrude/d3d_path_extrude.gml @@ -125,7 +125,7 @@ function __3dPathExtrude(radius = 0.5, sides = 8, smooth = false) : __3dObject() v._normalize(); - if(v.equal(_ux)) u = v.cross(_ux); + if(v.equal(_ux)) u = v.cross(_uz); else if(v.equal(_uz)) u = v.cross(_uy); else u = v.cross(_uz);