Fixing some issues due to import cleanup

This commit is contained in:
Ebag333
2016-12-14 13:06:13 -08:00
parent 0ebb992354
commit 956fa7a8b7
4 changed files with 16 additions and 19 deletions

View File

@@ -159,6 +159,13 @@ class HandledModuleList(HandledList):
for i in xrange(oldPos, len(self)):
self[i].position -= 1
def toDummy(self, index):
mod = self[index]
if not mod.isEmpty:
dummy = eos.types.Module.buildEmpty(mod.slot)
dummy.position = index
self[index] = dummy
def toModule(self, index, mod):
mod.position = index
self[index] = mod