Changeset - d5fd119a9acf
[Not reviewed]
default
0 1 0
Drew Perttula - 12 years ago 2013-06-09 01:13:34
drewp@bigasterisk.com
vertical scale widget can now be used on points that were all previously at 0
Ignore-this: c54e3a6b33a11e2a8e01f551c72d6d27
1 file changed with 7 insertions and 3 deletions:
0 comments (0 inline, 0 general)
light9/curvecalc/curveview.py
Show inline comments
 
@@ -174,9 +174,13 @@ class SelectManip(object):
 
                                    orig[1])) for i, orig in origPts)
 
            elif param == 'top':
 
                v = self.getWorldValue(event.y)
 
                scl = max(0, min(1 / self.origMaxValue, v / self.origMaxValue))
 
                self.setPoints((i, (orig[0], orig[1] * scl))
 
                               for i, orig in origPts)
 
                if self.origMaxValue == 0:
 
                    self.setPoints((i, (orig[0], v)) for i, orig in origPts)
 
                else:
 
                    scl = max(0, min(1 / self.origMaxValue,
 
                                     v / self.origMaxValue))
 
                    self.setPoints((i, (orig[0], orig[1] * scl))
 
                                   for i, orig in origPts)
 

	
 
            elif param == 'centerScale':
 
                dt = mouseT - self.dragStartTime
0 comments (0 inline, 0 general)