Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-11-11 02:32:15 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-11-11 02:32:15 +0400
commit67b74f96daa98809d5f9a348adfcd561f5f54f07 (patch)
tree55a59e2defe174187efc29c87a6717b479caa283 /source/gameengine/Expressions/IntValue.cpp
parent1ca4670267c3709d1c233264012882b4c0902748 (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/IntValue.cpp')
-rw-r--r--source/gameengine/Expressions/IntValue.cpp2
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;
}