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:
authorAlejandro Conty Estevez <conty@yafray.org>2004-01-29 11:46:08 +0300
committerAlejandro Conty Estevez <conty@yafray.org>2004-01-29 11:46:08 +0300
commitc28a1b58171e20d619e32c918a0ab2586f818e85 (patch)
tree9bf85b5fa764adb9d7723c711eced35bef6e3408 /source/blender/yafray
parentaea517832bcb9cd1c48cc1ac96f7bb53f53749fe (diff)
Fixed problem reported by Panagiotis Papadakos about yafray path in unix
Diffstat (limited to 'source/blender/yafray')
-rwxr-xr-xsource/blender/yafray/intern/export_File.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/yafray/intern/export_File.cpp b/source/blender/yafray/intern/export_File.cpp
index f93212e3188..a8eadffd024 100755
--- a/source/blender/yafray/intern/export_File.cpp
+++ b/source/blender/yafray/intern/export_File.cpp
@@ -91,7 +91,7 @@ static string unixYafrayPath()
{
string fp=string(alternative[i])+"yafray";
struct stat st;
- if(stat(alternative[i],&st)<0) continue;
+ if(stat(fp.c_str(),&st)<0) continue;
if(st.st_mode&S_IXOTH) return alternative[i];
}
return "";