Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/Util/ControlStream.py4
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 )