diff options
author | rcoh <rcoh@mit.edu> | 2010-12-29 15:34:47 -0500 |
---|---|---|
committer | rcoh <rcoh@mit.edu> | 2010-12-29 15:34:47 -0500 |
commit | 69449f1991952cee28c597f1a2bbb3f927751447 (patch) | |
tree | eed3e439f85e725f6cd5eef4cba5ec28e5eb634a /operationscore | |
parent | 8cb4e9ebab1fce088d729711a1bcf1bb32550a36 (diff) |
a couple improvements. nothing huge.
Diffstat (limited to 'operationscore')
-rw-r--r-- | operationscore/PixelEvent.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/operationscore/PixelEvent.py b/operationscore/PixelEvent.py index e2b852a..6b0812f 100644 --- a/operationscore/PixelEvent.py +++ b/operationscore/PixelEvent.py @@ -11,6 +11,8 @@ class PixelEvent(SmootCoreObject): pass #Returns a new PixelEvent, but with a response scaled by c. def scale(self,c): + if c == 1: + return self newDict = dict(self.argDict) newDict['Color'] = color.multiplyColor(newDict['Color'], c) return self.__class__(newDict) |