From 3925f58b6a9b0a2c49ce6d0e3534542a4975139b Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Fri, 26 Mar 2010 07:21:48 +0000 Subject: BGE: fix for [#21180] - missing min and max values in the API + mode fix (interval wasn't working) of course it wasn't only a matter of adding the properties in the api :) The code of validValueForIntervalProperty and modeChange are the same BUT in the future they shouldn't be, for I think it's fine to keep them as separated functions. Bonus fix: Also we are now checking if the new mode is interval and update the range expression. --- source/gameengine/PyDoc/GameTypes.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/gameengine/PyDoc') diff --git a/source/gameengine/PyDoc/GameTypes.py b/source/gameengine/PyDoc/GameTypes.py index cae1b875a1b..7ecae944324 100644 --- a/source/gameengine/PyDoc/GameTypes.py +++ b/source/gameengine/PyDoc/GameTypes.py @@ -5152,6 +5152,10 @@ class SCA_PropertySensor(SCA_ISensor): @type propName: string @ivar value: the value with which the sensor compares to the value of the property. @type value: string + @ivar min: the minimum value of the range used to evaluate the property when in interval mode. + @type min: string + @ivar max: the maximum value of the range used to evaluate the property when in interval mode. + @type max: string """ #{ Deprecated def getType(): -- cgit v1.2.3