From c28a1b58171e20d619e32c918a0ab2586f818e85 Mon Sep 17 00:00:00 2001 From: Alejandro Conty Estevez Date: Thu, 29 Jan 2004 08:46:08 +0000 Subject: Fixed problem reported by Panagiotis Papadakos about yafray path in unix --- source/blender/yafray/intern/export_File.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/yafray') 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 ""; -- cgit v1.2.3