Cycles Standalone: Support for relative paths and string OSL parameters.

Patch by John Haddon.
Differential Revision: https://developer.blender.org/D418
This commit is contained in:
Thomas Dinges
2014-03-21 17:22:41 +01:00
parent 12ce5ae5be
commit ce5395868f
3 changed files with 12 additions and 1 deletions

View File

@@ -111,6 +111,11 @@ string path_escape(const string& path)
return result;
}
bool path_is_relative(const string& path)
{
return to_boost(path).is_relative();
}
bool path_exists(const string& path)
{
return boost::filesystem::exists(to_boost(path));