From 69449f1991952cee28c597f1a2bbb3f927751447 Mon Sep 17 00:00:00 2001 From: rcoh Date: Wed, 29 Dec 2010 15:34:47 -0500 Subject: a couple improvements. nothing huge. --- operationscore/PixelEvent.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'operationscore') 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) -- cgit v1.2.3