mirror of
https://github.com/Winded/RagdollMover.git
synced 2025-03-04 03:13:36 -05:00
Fix to prop ragdoll tool not being able to remove props from the ragdoll creation list properly
This commit is contained in:
parent
cdffb230a4
commit
2a3dc2a3ba
@ -552,10 +552,10 @@ local function AddPRNode(parent, node)
|
||||
end)
|
||||
|
||||
PRUI.PRTree.Nodes[id].OnRemove = function()
|
||||
if not PRUI.PRTree.Nodes[id] then return end
|
||||
node.used = false
|
||||
node:SetIcon("icon16/brick.png")
|
||||
PRUI.PRTree.Bones = PRUI.PRTree.Bones - 1
|
||||
if not PRUI.PRTree.Nodes[id] then return end -- after some gmod update it seems like on remove is being called after the Nodes thing is emptied?
|
||||
PRUI.PRTree.Nodes[id] = nil
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user