From 67b74f96daa98809d5f9a348adfcd561f5f54f07 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 10 Nov 2012 22:32:15 +0000 Subject: - 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. --- source/gameengine/Expressions/IntValue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/gameengine/Expressions') 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; } -- cgit v1.2.3