aboutsummaryrefslogtreecommitdiff
path: root/operationscore/PixelEvent.py
diff options
context:
space:
mode:
Diffstat (limited to 'operationscore/PixelEvent.py')
-rw-r--r--operationscore/PixelEvent.py2
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)