Mercurial > code > home > repos > light9
comparison light8/subediting.py @ 44:6540879e336e
fixed Stage a lot: ctrl-drag subtracts from selection; ctrl-a/ctrl-A select all/none;
fixed Stage a lot: ctrl-drag subtracts from selection; ctrl-a/ctrl-A select all/none;
rmb adjusts levels
author | drewp |
---|---|
date | Sun, 07 Jul 2002 13:07:31 +0000 |
parents | 5e4fb4ac2d18 |
children | 032b2b67bc10 |
comparison
equal
deleted
inserted
replaced
43:2cd759c2b3c7 | 44:6540879e336e |
---|---|
59 for l in lightnames: | 59 for l in lightnames: |
60 if l not in self.startlevels: | 60 if l not in self.startlevels: |
61 # level was not in the sub | 61 # level was not in the sub |
62 cl = self.getcurrentlevel(l) | 62 cl = self.getcurrentlevel(l) |
63 if cl is None: | 63 if cl is None: |
64 print "light isn't even in the patch! skipping" | 64 print "light '%s' isn't even in the patch! skipping" % l |
65 return | 65 return |
66 print "copying current light level",cl,"into the sub" | 66 print "copying current light level",cl,"into the sub" |
67 self.startlevels[l] = cl | 67 self.startlevels[l] = cl |
68 | 68 |
69 updatelevels[l] = min(100,max(0,self.startlevels[l]+delta)) | 69 updatelevels[l] = min(100,max(0,self.startlevels[l]+delta)) |