Skip to content

Commit

Permalink
Fixed parts with a mesh with negative scale
Browse files Browse the repository at this point in the history
  • Loading branch information
mkargus committed Jun 4, 2024
1 parent 130cf9d commit 6b1b9df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Util/TerrainUtil.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function TerrainUtil:GetPartInfo(part: BasePart): (string, CFrame, Vector3)
-- If the part has a mesh parented to it, then use the mesh shape instead
if obj then
cframe += part.CFrame:VectorToWorldSpace(obj.Offset)
size *= obj.Scale
size *= obj.Scale:Abs()

if obj:IsA('SpecialMesh') then
if obj.MeshType == Enum.MeshType.Cylinder then
Expand Down

0 comments on commit 6b1b9df

Please sign in to comment.