Bug fixes with ragdolls that are missing some animated unfake bones
This commit is contained in:
parent
cd7b77914b
commit
c9ba1e8709
1 changed files with 2 additions and 2 deletions
|
|
@ -67,9 +67,9 @@ function ENT:Think()
|
|||
for i, name in pairs(bones_to_animate) do
|
||||
local object = ragdoll:GetPhysicsObjectNum(ragdoll:TranslateBoneToPhysBone(ragdoll:LookupBone(name)))
|
||||
local parent_object = old_ragdoll:GetBoneMatrix(old_ragdoll:LookupBone(name))
|
||||
print(old_ragdoll)
|
||||
print(parent_object)
|
||||
|
||||
--if !IsValid(parent_object) then continue end
|
||||
if parent_object == nil then continue end
|
||||
|
||||
object:SetPos(parent_object:GetTranslation())
|
||||
object:SetAngles(parent_object:GetAngles())
|
||||
|
|
|
|||
Loading…
Reference in a new issue