Skip to content

Commit

Permalink
Merge pull request #3 from DerelictDrone/dev
Browse files Browse the repository at this point in the history
Fix for nil reference during scale transform
  • Loading branch information
marchc1 authored Jan 15, 2025
2 parents 27b75ea + a77efb7 commit 0f4e740
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/ponder/instructions_cl/models/ponder.transformmodel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ function TransformModel:Update(playback)
end

if object.PONDER_TARG_SCA then
mdl.Scale = LerpVector(progress, object.PONDER_LAST_SCA, object.PONDER_TARG_SCA)
object.Scale = LerpVector(progress, object.PONDER_LAST_SCA, object.PONDER_TARG_SCA)
local mat = Matrix()
mat:Scale(mdl.Scale)
mdl:EnableMatrix("RenderMultiply", mat)
mat:Scale(object.Scale)
object:EnableMatrix("RenderMultiply", mat)
end
end

0 comments on commit 0f4e740

Please sign in to comment.