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:
@@ -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));
|
||||
|
Reference in New Issue
Block a user