[Fix] HC:remove(shape) does not remove from groups

This commit is contained in:
Matthias Richter 2013-02-09 22:04:28 +01:00
parent ec2cc20a6b
commit df3e163f9a

View File

@ -222,6 +222,9 @@ function HC:remove(shape, ...)
self._active_shapes[shape] = nil
self._passive_shapes[shape] = nil
self._ghost_shapes[shape] = nil
for name, group in pairs(shape._groups) do
group[shape] = nil
end
shape:_removeFromHash()
return self:remove(...)