diff options
author | amartin <olpc@xo-05-28-21.localdomain> | 2007-12-22 15:45:56 (GMT) |
---|---|---|
committer | amartin <olpc@xo-05-28-21.localdomain> | 2007-12-22 15:45:56 (GMT) |
commit | 0547c68b55579fca5eb1e87753bc1dc019aefb05 (patch) | |
tree | 441db538dbaab16b2d4fb334e033d9d8916d4fcf | |
parent | 166e9267e94532fd5da667f958a4f5990f067db2 (diff) |
keep fix
-rw-r--r-- | common/Util/ControlStream.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/common/Util/ControlStream.py b/common/Util/ControlStream.py index 5598b19..eea3150 100644 --- a/common/Util/ControlStream.py +++ b/common/Util/ControlStream.py @@ -64,11 +64,13 @@ class TamTamOStream: def block_add( self, typeStr, active, centerX, centerY, child, data ): if typeStr == "Drum" or typeStr == "Instrument": - data = data[:] # don't overwrite the block's data + realId = data["id"] # don't overwrite the block's data data["id"] = self.instrumentDB.getInstrument( data["id"] ).name l = [ "block_add", typeStr, str(active), str(centerX), str(centerY), str(child), str(data) ] self.file.write( " ".join([str(i) for i in l])) self.file.write('\n') + if typeStr == "Drum" or typeStr == "Instrument": + data["id"] = realId def desktop_store( self, filename, id ): self.file.write( "desktop_store %d\n" % id ) |