From a50fcaec8b58bc261f7934cf16064c630bbc573d Mon Sep 17 00:00:00 2001 From: Tanasart Date: Sat, 27 Jul 2024 12:37:56 +0700 Subject: [PATCH] - [Path Extrude] Fix mesh generation error in some case. --- scripts/d3d_path_extrude/d3d_path_extrude.gml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);