mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-20 17:41:37 +00:00
plugin: Ensure InstanceMap deletes existing entries before inserting
This commit is contained in:
parent
e5041d80ef
commit
2136da15d6
1 changed files with 3 additions and 0 deletions
|
|
@ -79,6 +79,9 @@ function InstanceMap:__fmtDebug(output)
|
|||
end
|
||||
|
||||
function InstanceMap:insert(id, instance)
|
||||
self:removeId(id)
|
||||
self:removeInstance(instance)
|
||||
|
||||
self.fromIds[id] = instance
|
||||
self.fromInstances[instance] = id
|
||||
self:__connectSignals(instance)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue