diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2016-11-12 19:20:40 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2016-11-12 19:33:07 +0300 |
commit | b5a58507f2b01be86af63815f6e784b7952903c3 (patch) | |
tree | d718b76551df8c6a9b9d2d4b226d1b1cc69ba8f9 /intern | |
parent | 69288737caf4fab6c90558129772b0acaecf8863 (diff) |
Fix Cycles OSL compilation based on modified time not working.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/util/util_path.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/util/util_path.cpp b/intern/cycles/util/util_path.cpp index 62ef8fc0b48..5df262fcbbb 100644 --- a/intern/cycles/util/util_path.cpp +++ b/intern/cycles/util/util_path.cpp @@ -757,9 +757,9 @@ uint64_t path_modified_time(const string& path) { path_stat_t st; if(path_stat(path, &st) != 0) { - return st.st_mtime; + return 0; } - return 0; + return st.st_mtime; } bool path_remove(const string& path) |