diff options
author | Jorge Bernal <jbernalmartinez@gmail.com> | 2014-06-04 00:20:59 +0400 |
---|---|---|
committer | Mitchell Stokes <mogurijin@gmail.com> | 2014-06-17 01:56:36 +0400 |
commit | 8c16f4c7d0b334b70ec3b01ac1d81d280e9759b1 (patch) | |
tree | 018f4298470e095746eb24f9365a98d35c51ce5a /source/gameengine/Expressions/VoidValue.h | |
parent | 3144ae2c341e06307e4ecab83e9c7bed7a061d37 (diff) |
BGE: New Property sensor evaluation types
This patch adds "Less Than" and "Greater Than" evaluation types to the property sensor.
The Wiki Docs modifications http://wiki.blender.org/index.php/User:Lordloki/Doc:2.6/Manual/Game_Engine/Logic/Sensors/Property
Also, I have attached a screenshot and a blend to check.
Reviewers: dfelinto, moguri
Reviewed By: moguri
Differential Revision: https://developer.blender.org/D476
Diffstat (limited to 'source/gameengine/Expressions/VoidValue.h')
-rw-r--r-- | source/gameengine/Expressions/VoidValue.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/gameengine/Expressions/VoidValue.h b/source/gameengine/Expressions/VoidValue.h index 832f75c9c9f..4f74910dd8a 100644 --- a/source/gameengine/Expressions/VoidValue.h +++ b/source/gameengine/Expressions/VoidValue.h @@ -59,6 +59,7 @@ public: /// Value -> String or number virtual const STR_String & GetText(); /* Get string description of void value (unimplemented) */ virtual double GetNumber() { return -1; } + virtual int GetValueType() { return VALUE_VOID_TYPE; } /// Value calculation virtual CValue* Calc(VALUE_OPERATOR op, CValue *val); |