diff options
author | Mitchell Stokes <mogurijin@gmail.com> | 2012-07-06 00:34:42 +0400 |
---|---|---|
committer | Mitchell Stokes <mogurijin@gmail.com> | 2012-07-06 00:34:42 +0400 |
commit | 9f7db7f3eaaeb6f20927230447faf2f926db7f9c (patch) | |
tree | 4436a67a29315a362701c176fdcce71db98985c2 /source/gameengine/GameLogic/SCA_PropertySensor.h | |
parent | 5f3bd06f37d13d486ea6a8540b9d7f9cd50f39b7 (diff) |
Fix for [#31122] "Properties cant have Spaces in names when using interval as a evaluation. Or else it'll fail to activate actuator." reported by Auuman Anubis.
I cleaned up the INTERVAL check to do a much cleaner (and saner) range check that doesn't get messed up by spaces.
Diffstat (limited to 'source/gameengine/GameLogic/SCA_PropertySensor.h')
-rw-r--r-- | source/gameengine/GameLogic/SCA_PropertySensor.h | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/source/gameengine/GameLogic/SCA_PropertySensor.h b/source/gameengine/GameLogic/SCA_PropertySensor.h index ca942076efa..fee03dcf4c0 100644 --- a/source/gameengine/GameLogic/SCA_PropertySensor.h +++ b/source/gameengine/GameLogic/SCA_PropertySensor.h @@ -46,7 +46,6 @@ class SCA_PropertySensor : public SCA_ISensor STR_String m_previoustext; bool m_lastresult; bool m_recentresult; - CExpression* m_range_expr; protected: @@ -69,16 +68,10 @@ public: const STR_String& propval, const STR_String& propmaxval, KX_PROPSENSOR_TYPE checktype); - - /** - * For property sensor, it is used to release the pre-calculated expression - * so that self references are removed before the sensor itself is released - */ - virtual void Delete(); + virtual ~SCA_PropertySensor(); virtual CValue* GetReplica(); virtual void Init(); - void PrecalculateRangeExpression(); bool CheckPropertyCondition(); virtual bool Evaluate(); @@ -96,16 +89,6 @@ public: */ static int validValueForProperty(void* self, const PyAttributeDef*); - /** - * Test whether this is a sensible value for interval (type check) and updates Range Expression - */ - static int validValueForIntervalProperty(void* self, const PyAttributeDef*); - - /** - * Test if the new mode is interval. If positive updates Range Expression - */ - static int modeChange(void* self, const PyAttributeDef* attrdef); - #endif }; |