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
path: root/intern
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-06-01 09:43:58 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-06-01 09:43:58 +0400
commit94af7242939ef8da07f63feb3d44981ca26beab5 (patch)
tree85eb0ea4db92b98df38e2d70cd3e60b1a4d7b968 /intern
parente415fa27b019c1b00bdb443dbf39491de941aab1 (diff)
YoFrankie bug [#18857] On start gives ImportError: No module named frankie_scripts
GameEngine sys.path creation was broken because of a pesky slash at the end of each path name. Win32 sys.paths were also failing when running a game that switched between blend files in different directories On win32 for some reason making absolute paths from lib->name failed, work around this by using lib->filename. STR_String.h, cast to float to quiet compiler warnings.
Diffstat (limited to 'intern')
-rw-r--r--intern/string/STR_String.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/string/STR_String.h b/intern/string/STR_String.h
index ec945c80c7c..34b5e3681ff 100644
--- a/intern/string/STR_String.h
+++ b/intern/string/STR_String.h
@@ -142,7 +142,7 @@ public:
inline operator const char *() const { return pData; }
inline char *Ptr() { return pData; }
inline const char *ReadPtr() const { return pData; }
- inline float ToFloat() const { float x=atof(pData); return x; }
+ inline float ToFloat() const { float x=(float)atof(pData); return x; }
inline int ToInt() const { return atoi(pData); }
// Operators