diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-09-12 17:13:56 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-09-12 17:13:56 +0400 |
commit | ebc653463ddfd9f8b893b6acbcc6465972e6abc6 (patch) | |
tree | 6b3cc2ba3f04994cf9f8d8f5bca6d63cfe2c9d1f /intern/cycles/util | |
parent | c40492205b4369de3babe63b43d127ca622773ec (diff) |
Cycles:
* Fix missing update when editing objects with emission materials.
* Fix preview pass rendering set to 1 not showing full resolution.
* Fix CUDA runtime compiling failing due to missing cache directory.
* Use settings from first render layer for visibility and material override.
And a bunch of incomplete and still disabled code mostly related to closure
sampling.
Diffstat (limited to 'intern/cycles/util')
-rw-r--r-- | intern/cycles/util/util_path.cpp | 9 | ||||
-rw-r--r-- | intern/cycles/util/util_path.h | 1 |
2 files changed, 8 insertions, 2 deletions
diff --git a/intern/cycles/util/util_path.cpp b/intern/cycles/util/util_path.cpp index 90093e32d58..d3f739e19f6 100644 --- a/intern/cycles/util/util_path.cpp +++ b/intern/cycles/util/util_path.cpp @@ -109,11 +109,16 @@ string path_files_md5_hash(const string& dir) return hash.get_hex(); } -bool path_write_binary(const string& path, const vector<uint8_t>& binary) +void path_create_directories(const string& path) { - /* write binary file from memory */ boost::filesystem::create_directories(path_dirname(path)); +} +bool path_write_binary(const string& path, const vector<uint8_t>& binary) +{ + path_create_directories(path); + + /* write binary file from memory */ FILE *f = fopen(path.c_str(), "wb"); if(!f) diff --git a/intern/cycles/util/util_path.h b/intern/cycles/util/util_path.h index a91b91461fa..4a9d45ec594 100644 --- a/intern/cycles/util/util_path.h +++ b/intern/cycles/util/util_path.h @@ -42,6 +42,7 @@ string path_escape(const string& path); bool path_exists(const string& path); string path_files_md5_hash(const string& dir); +void path_create_directories(const string& path); bool path_write_binary(const string& path, const vector<uint8_t>& binary); bool path_read_binary(const string& path, vector<uint8_t>& binary); |