mirror of
https://github.com/CapsAdmin/pac3.git
synced 2025-03-04 03:03:01 -05:00
Fix the getBonePosition behavior too
This commit is contained in:
parent
a462c913e8
commit
69fbd90b75
@ -40,6 +40,18 @@ do -- bones
|
||||
return parent.pos, parent.ang
|
||||
end
|
||||
|
||||
do -- legacy behavior, inherit parent matrix from sprite, particle, etc
|
||||
if
|
||||
not parent.is_model_part and
|
||||
not parent.is_bone_part and
|
||||
not self.is_bone_part and
|
||||
parent.WorldMatrix and
|
||||
parent.ClassName ~= "jiggle"
|
||||
then
|
||||
return parent:GetWorldPosition(), parent:GetWorldAngles()
|
||||
end
|
||||
end
|
||||
|
||||
local owner = self:GetParentOwner()
|
||||
|
||||
if owner:IsValid() then
|
||||
|
Loading…
Reference in New Issue
Block a user