mirror of
https://github.com/wiremod/advdupe2.git
synced 2025-03-04 03:03:05 -05:00
Merge pull request #206 from thegrb93/find-parented-props
Add parented entities to copy. Fixes: #204
This commit is contained in:
commit
f294fe2551
@ -353,6 +353,14 @@ local function Copy( Ent, EntTable, ConstraintTable, Offset )
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
do -- Parented stuff
|
||||
local parent = Ent:GetParent()
|
||||
if IsValid(parent) then Copy(parent, EntTable, ConstraintTable, Offset) end
|
||||
for k, child in pairs(Ent:GetChildren()) do
|
||||
Copy(child, EntTable, ConstraintTable, Offset)
|
||||
end
|
||||
end
|
||||
|
||||
for k,v in pairs(EntTable[Ent:EntIndex()].PhysicsObjects)do
|
||||
Ent:GetPhysicsObjectNum(k):EnableMotion(v.Frozen)
|
||||
|
Loading…
Reference in New Issue
Block a user