Skip to content

Commit

Permalink
Fix Wheel Model tool resetting wheel radius
Browse files Browse the repository at this point in the history
  • Loading branch information
StyledStrike committed Jan 3, 2025
1 parent 2e73ab8 commit ee3d48a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lua/entities/base_glide/sv_wheels.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function ENT:ChangeWheelRadius( radius )

for _, w in ipairs( self.wheels ) do
if IsValid( w ) then
w.defaultRadius = radius
w.params.radius = radius
w:ChangeRadius( radius )
end
end
Expand Down
2 changes: 1 addition & 1 deletion lua/entities/glide_wheel/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function ENT:SetupWheel( t )

local params = self.params

-- Physical wheel radius, also affects the model scale
-- Physical wheel radius, also affects the model size
params.radius = t.radius or 15

-- Wheel offset relative to the parent
Expand Down

0 comments on commit ee3d48a

Please sign in to comment.