Skip to content

Commit

Permalink
Call InvalidateBoneCache after SetPoseParameter
Browse files Browse the repository at this point in the history
  • Loading branch information
StyledStrike committed Dec 29, 2024
1 parent 3ed48ce commit 348a0b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lua/entities/base_glide_car/shared.lua
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ if CLIENT then
-- to update animations (the steering wheel for example).
function ENT:OnUpdateAnimations()
self:SetPoseParameter( "vehicle_steer", self:GetSteering() )
self:InvalidateBoneCache()
end
end

Expand Down
1 change: 1 addition & 0 deletions lua/entities/gtav_sanchez.lua
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ if CLIENT then

self:SetPoseParameter( "suspension_front", 1 - ( Abs( self:GetWheelOffset( 1 ) ) / 7 ) )
self:SetPoseParameter( "suspension_rear", 1 - ( Abs( self:GetWheelOffset( 2 ) ) / 7 ) )
self:InvalidateBoneCache()

if not self.frontBoneId then return end

Expand Down

0 comments on commit 348a0b5

Please sign in to comment.