diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-11-11 02:32:15 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-11-11 02:32:15 +0400 |
commit | 67b74f96daa98809d5f9a348adfcd561f5f54f07 (patch) | |
tree | 55a59e2defe174187efc29c87a6717b479caa283 /source/gameengine/Expressions | |
parent | 1ca4670267c3709d1c233264012882b4c0902748 (diff) |
- property sensor was converting floating point values to text then back to float - for floating point properties.
- IntValue's GetNumber() was convert int -> float -> double.
- BL_Shader was using STR_String rather then char*, where most callers had a char*, use a char* to avoid STR_String conversion-and-alloc on shader access.
Diffstat (limited to 'source/gameengine/Expressions')
-rw-r--r-- | source/gameengine/Expressions/IntValue.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/gameengine/Expressions/IntValue.cpp b/source/gameengine/Expressions/IntValue.cpp index cb6bc556bab..0261a4a2d02 100644 --- a/source/gameengine/Expressions/IntValue.cpp +++ b/source/gameengine/Expressions/IntValue.cpp @@ -286,7 +286,7 @@ cInt CIntValue::GetInt() double CIntValue::GetNumber() { - return (float) m_int; + return (double) m_int; } |